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
This commit is contained in:
Guy Harris 1999-07-31 02:15:12 +00:00
parent e75e9ea3b5
commit 9b253e4151
1 changed files with 2 additions and 2 deletions

View File

@ -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;