aboutsummaryrefslogtreecommitdiffstats
path: root/packet-x11.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-04-20 22:31:25 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-04-20 22:31:25 +0000
commit0539436d8848b9e5502d6237feaf9cade13fa13e (patch)
treebe39bea8d47ead29322305eb20dc37cdf342ae3f /packet-x11.c
parentfe8179c7ce433494f16604917d2f4e91e6928b1f (diff)
Use "%u", not "%d", to print unsigned quantities.
Remove an extra space from one format. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3353 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-x11.c')
-rw-r--r--packet-x11.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/packet-x11.c b/packet-x11.c
index c06a5272a8..2c8a181e42 100644
--- a/packet-x11.c
+++ b/packet-x11.c
@@ -2,7 +2,7 @@
* Routines for X11 dissection
* Copyright 2000, Christophe Tronche <ch.tronche@computer.org>
*
- * $Id: packet-x11.c,v 1.19 2001/04/20 20:34:29 guy Exp $
+ * $Id: packet-x11.c,v 1.20 2001/04/20 22:31:25 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -697,7 +697,7 @@ static void atom(tvbuff_t *tvb, proto_tree *t, int hf)
interpretation = match_strval(v, cVALS(hfi -> strings));
}
if (!interpretation) interpretation = "error in Xlib client program ?";
- proto_tree_add_uint_format(t, hf, tvb, cur_offset, 4, v, "%s: %d (%s)",
+ proto_tree_add_uint_format(t, hf, tvb, cur_offset, 4, v, "%s: %u (%s)",
proto_registrar_get_nth(hf) -> name, v, interpretation);
cur_offset += 4;
}
@@ -1198,7 +1198,7 @@ static guint32 field8(tvbuff_t *tvb, int hf)
if (hfi -> strings)
enumValue = match_strval(v, cVALS(hfi -> strings));
if (enumValue)
- proto_tree_add_uint_format(t, hf, tvb, cur_offset, 1, v, "%s: %d (%s)", nameAsChar, v, enumValue);
+ proto_tree_add_uint_format(t, hf, tvb, cur_offset, 1, v, "%s: %u (%s)", nameAsChar, v, enumValue);
else
proto_tree_add_item(t, hf, tvb, cur_offset, 1, little_endian);
cur_offset += 1;
@@ -1226,7 +1226,7 @@ static guint32 field32(tvbuff_t *tvb, int hf)
proto_tree_add_uint_format(t, hf, tvb, cur_offset, 4, v, "%s: 0x%08x (%s)", nameAsChar, v, enumValue);
else
proto_tree_add_uint_format(t, hf, tvb, cur_offset, 4, v,
- hfi -> display == BASE_DEC ? "%s: %d" : "%s : 0x%08x",
+ hfi -> display == BASE_DEC ? "%s: %u" : "%s: 0x%08x",
nameAsChar, v);
cur_offset += 4;
return v;