summaryrefslogtreecommitdiff
path: root/print-pppoe.c
diff options
context:
space:
mode:
authorguy <guy>2003-11-15 01:02:02 +0000
committerguy <guy>2003-11-15 01:02:02 +0000
commit65eedd691acae7d4ae5188eeb314d31d27aed123 (patch)
treecc7549954c0bdab5814c16f4a8ab6568b983f3c8 /print-pppoe.c
parent3824a6c0417a551961d1a1bf4f94f10eff736afc (diff)
downloadtcpdump-65eedd691acae7d4ae5188eeb314d31d27aed123.tar.gz
Use the right format to print a value as 2 hex digits.
Diffstat (limited to 'print-pppoe.c')
-rw-r--r--print-pppoe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print-pppoe.c b/print-pppoe.c
index 5b817c1a..e69eff75 100644
--- a/print-pppoe.c
+++ b/print-pppoe.c
@@ -40,7 +40,7 @@
#ifndef lint
static const char rcsid[] _U_ =
-"@(#) $Header: /tcpdump/master/tcpdump/print-pppoe.c,v 1.25 2003-11-15 00:39:36 guy Exp $ (LBL)";
+"@(#) $Header: /tcpdump/master/tcpdump/print-pppoe.c,v 1.26 2003-11-15 01:02:02 guy Exp $ (LBL)";
#endif
/* Codes */
enum {
@@ -196,7 +196,7 @@ pppoe_print(register const u_char *bp, u_int length)
/* Print hex, not fast to abuse printf but this doesn't get used much */
printf(" [%s 0x", tok2str(pppoetag2str, "TAG-0x%x", tag_type));
for (v=p; v<p+tag_len; v++) {
- printf("%02.2X", *v);
+ printf("%02X", *v);
}
printf("]");
}