aboutsummaryrefslogtreecommitdiffstats
path: root/proto.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-07-31 02:15:12 +0000
committerGuy Harris <guy@alum.mit.edu>1999-07-31 02:15:12 +0000
commit9b253e4151da9d666c88dc3545c85047050b36b9 (patch)
treebe0c4c2702ecc4415eae113e60d688949072639b /proto.c
parente75e9ea3b5bfdfc2438b937dfa6c21a750dbed20 (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. svn path=/trunk/; revision=406
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;