aboutsummaryrefslogtreecommitdiffstats
path: root/proto.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>1999-07-31 02:15:12 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>1999-07-31 02:15:12 +0000
commitdecf9a175cd2d5db4dc70db6d66df52b15ae0500 (patch)
treebe0c4c2702ecc4415eae113e60d688949072639b /proto.c
parent6bdf844be087b5e9a0507d5808e41120650a5aef (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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto.c b/proto.c
index bec1c73a12..9c68451a14 100644
--- a/proto.c
+++ b/proto.c
@@ -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;