]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Not all platforms on which we compile define PRI[doux]16.
authorGuy Harris <[email protected]>
Mon, 6 May 2013 02:47:48 +0000 (19:47 -0700)
committerGuy Harris <[email protected]>
Mon, 6 May 2013 02:47:48 +0000 (19:47 -0700)
So don't use it; it's not necessary on any of the platforms on which we
work.  (The *only* ones that are needed are PRI[doux]64, because
sometimes you need %ll[doux], sometimes you need %l[doux], and with MSVC
you need whatever its run-time library requires.)

print-zeromq.c

index 5aea478d76c3e4ea5f1c5b474032782c3f60b8b5..4c98dde7efadb17275a392ab9c2cac9c4290eb12 100644 (file)
@@ -169,7 +169,7 @@ zmtp1_print_intermediate_part(const u_char *cp, const u_int len) {
 
        TCHECK2(*cp, 2);
        frame_offset = EXTRACT_16BITS(cp);
-       printf("\n\t frame offset 0x%04"PRIx16"", frame_offset);
+       printf("\n\t frame offset 0x%04u", frame_offset);
        cp += 2;
        remaining_len = snapend - cp; /* without the frame length */