]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Use the right format to print a value as 2 hex digits.
authorguy <guy>
Sat, 15 Nov 2003 22:33:28 +0000 (22:33 +0000)
committerguy <guy>
Sat, 15 Nov 2003 22:33:28 +0000 (22:33 +0000)
print-pppoe.c

index d69f5eeb03a5708355fae5eb78456a7e3c8bd8cc..7ae29adcb9a6eedfa936dead354f4a678c82b0fb 100644 (file)
@@ -40,7 +40,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-"@(#) $Header: /tcpdump/master/tcpdump/print-pppoe.c,v 1.24.2.1 2003-11-15 22:29:04 guy Exp $ (LBL)";
+"@(#) $Header: /tcpdump/master/tcpdump/print-pppoe.c,v 1.24.2.2 2003-11-15 22:33:28 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("]");
                                }