diff options
author | guy <guy> | 2003-11-15 01:02:02 +0000 |
---|---|---|
committer | guy <guy> | 2003-11-15 01:02:02 +0000 |
commit | 65eedd691acae7d4ae5188eeb314d31d27aed123 (patch) | |
tree | cc7549954c0bdab5814c16f4a8ab6568b983f3c8 | |
parent | 3824a6c0417a551961d1a1bf4f94f10eff736afc (diff) | |
download | tcpdump-65eedd691acae7d4ae5188eeb314d31d27aed123.tar.gz |
Use the right format to print a value as 2 hex digits.
-rw-r--r-- | print-pppoe.c | 4 |
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("]"); } |