From: Denis Ovsienko Date: Thu, 14 Mar 2013 15:57:59 +0000 (+0400) Subject: fix two printf format strings X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/b71c02f6b36c11c1e9d1ef5e8855f31965d3298b fix two printf format strings --- diff --git a/print-cfm.c b/print-cfm.c index fb0476f5..5df498c5 100644 --- a/print-cfm.c +++ b/print-cfm.c @@ -282,7 +282,7 @@ cfm_egress_id_string(register const u_char *tptr) { static char egress_id_buffer[80]; snprintf(egress_id_buffer, sizeof(egress_id_buffer), - "MAC %0x4x-%s", + "MAC 0x%4x-%s", EXTRACT_16BITS(tptr), etheraddr_string(tptr+2)); diff --git a/print-pgm.c b/print-pgm.c index 2d4d7449..a880ae5d 100644 --- a/print-pgm.c +++ b/print-pgm.c @@ -471,7 +471,7 @@ pgm_print(register const u_char *bp, register u_int length, break; default: - (void)printf("UNKNOWN type %0x02x", pgm->pgm_type); + (void)printf("UNKNOWN type 0x%02x", pgm->pgm_type); break; }