diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-02-22 12:04:48 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-02-22 20:05:14 +0000 |
commit | 08bee7d71b6a3cba733b65842e0a68a6ebc3973a (patch) | |
tree | 6d8348e4d3ea47473f057cd9c742968e97d9f6b4 /epan/dissectors/packet-lldp.c | |
parent | 066ae911376dd352ed6cb19b5498aed07cd13285 (diff) |
Clean up display of raw hex latitude/longitude values.
1) It's only 40 bits long, so show only 10 hex digits.
2) If you're putting "0x" before the number, blank-padding on the left
looks weird; use zero-padding.
3) Fix unbalanced parentheses.
Change-Id: I76aedb1fb82f699ee08102b97b0d72e09d8c5917
Reviewed-on: https://code.wireshark.org/review/7320
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-lldp.c')
-rw-r--r-- | epan/dissectors/packet-lldp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-lldp.c b/epan/dissectors/packet-lldp.c index 1b5e0b063c..86765c4a83 100644 --- a/epan/dissectors/packet-lldp.c +++ b/epan/dissectors/packet-lldp.c @@ -1082,7 +1082,7 @@ get_latitude_or_longitude(gchar *buf, int option, guint64 unmasked_value) direction = "East"; } - g_snprintf(buf, ITEM_LABEL_LENGTH, "%u.%04" G_GINT64_MODIFIER "u degrees %s (0x%16" G_GINT64_MODIFIER "X))", + g_snprintf(buf, ITEM_LABEL_LENGTH, "%u.%04" G_GINT64_MODIFIER "u degrees %s (0x%010" G_GINT64_MODIFIER "X)", integerPortion, tempValue, direction, value); } |