diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 1999-07-31 02:15:12 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 1999-07-31 02:15:12 +0000 |
commit | decf9a175cd2d5db4dc70db6d66df52b15ae0500 (patch) | |
tree | be0c4c2702ecc4415eae113e60d688949072639b /proto.c | |
parent | 6bdf844be087b5e9a0507d5808e41120650a5aef (diff) |
Print FT_UINT{8,16,32} values with "%u", not "%d", as they're unsigned
values (for example, a sequence number in a TCP header should be printed
as an unsigned value; I have a trace in which the uppermost bit of the
sequence number is set...). If we need to be able to handle signed
values, add FT_INT{8,16,32} types.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@406 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'proto.c')
-rw-r--r-- | proto.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,7 +1,7 @@ /* proto.c * Routines for protocol tree * - * $Id: proto.c,v 1.5 1999/07/29 05:47:07 gram Exp $ + * $Id: proto.c,v 1.6 1999/07/31 02:15:12 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -509,7 +509,7 @@ proto_item_fill_label(field_info *fi, gchar *label_str) case FT_UINT16: case FT_UINT32: snprintf(label_str, ITEM_LABEL_LENGTH, - "%s: %d", fi->hfinfo->name, + "%s: %u", fi->hfinfo->name, fi->value.numeric); break; |