diff options
author | Michael Mann <mmann78@netscape.net> | 2016-12-14 17:34:56 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2016-12-16 01:55:10 +0000 |
commit | 8efb7fece1ffefd26dacd79f5ec8722c4e01e827 (patch) | |
tree | cafadc9d104e2b163c54834aa62a8b9b1bcfb0d7 /epan/unit_strings.c | |
parent | d706f9c221e85992f7011baed53f5b31b7109493 (diff) |
Adjust proto_tree_add_xxx_format_value calls to use unit string
proto_tree_add_uint_format_value had the most use of unit strings, this
patch handles all of the other proto_tree_add_xxx_format_value calls that
could be better served using BASE_UNIT_STRING with a "unit string" in hf_ field.
Added more "common" unit string values to unit_strings.[ch]
Change-Id: I0fb680be781e10037eb7bd40dd21a9ee20c1fb1c
Reviewed-on: https://code.wireshark.org/review/19288
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/unit_strings.c')
-rw-r--r-- | epan/unit_strings.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/unit_strings.c b/epan/unit_strings.c index cfcfeb9bce..4614eb2ce5 100644 --- a/epan/unit_strings.c +++ b/epan/unit_strings.c @@ -62,6 +62,7 @@ const unit_name_string units_nanosecond_nanoseconds = { " nanosecond", " nanosec const unit_name_string units_nanometers = { "nm", NULL }; const unit_name_string units_degree_degrees = { " degree", " degrees" }; const unit_name_string units_decibals = { "dB", NULL }; +const unit_name_string units_dbm = { "dBm", NULL }; const unit_name_string units_percent = { "%", NULL }; const unit_name_string units_mhz = { "MHz", NULL }; const unit_name_string units_ghz = { "GHz", NULL }; |