aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>1999-06-21 16:20:18 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>1999-06-21 16:20:18 +0000
commit6533d5cae6cba38e362924dc85ece0fe39ffcd75 (patch)
treeeeb123632919bfaca8ac425395afc109bbb93199
parentd5fab3173788f8f5fdd4e441c8faa2394f565299 (diff)
Added "0x" to a couple of proto_tree_add_item printf-style labels that
were printing values in hex. The lack of "0x" in fron of the hex numbers made me think the values were decimal, causing me to waste a bit of time during debugging. svn path=/trunk/; revision=323
-rw-r--r--packet-ip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-ip.c b/packet-ip.c
index bd5a8694c4..67574c3f18 100644
--- a/packet-ip.c
+++ b/packet-ip.c
@@ -1,7 +1,7 @@
/* packet-ip.c
* Routines for IP and miscellaneous IP protocol packet disassembly
*
- * $Id: packet-ip.c,v 1.25 1999/06/11 16:44:50 gram Exp $
+ * $Id: packet-ip.c,v 1.26 1999/06/21 16:20:18 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -599,7 +599,7 @@ dissect_ip(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) {
if (check_col(fd, COL_PROTOCOL))
col_add_str(fd, COL_PROTOCOL, "IP");
if (check_col(fd, COL_INFO))
- col_add_fstr(fd, COL_INFO, "Unknown IP protocol (%02x)", iph.ip_p);
+ col_add_fstr(fd, COL_INFO, "Unknown IP protocol (0x%02x)", iph.ip_p);
}
if (check_col(fd, COL_RES_NET_SRC))
@@ -680,7 +680,7 @@ dissect_ip(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) {
proto_tree_add_item(ip_tree, offset + 8, 1, "Time to live: %d",
iph.ip_ttl);
proto_tree_add_item(ip_tree, offset + 9, 1, "Protocol: %s",
- val_to_str(iph.ip_p, proto_vals, "Unknown (%x)"));
+ val_to_str(iph.ip_p, proto_vals, "Unknown (0x%x)"));
proto_tree_add_item(ip_tree, offset + 10, 2, "Header checksum: 0x%04x",
iph.ip_sum);
proto_tree_add_item(ip_tree, offset + 12, 4, "Source address: %s (%s)",