]> git.puffer.fish Git - matthieu/frr.git/commitdiff
tests: fix mis-fixed format string
authorDavid Lamparter <equinox@opensourcerouting.org>
Thu, 15 Dec 2016 23:14:55 +0000 (00:14 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Fri, 13 Jan 2017 10:51:45 +0000 (11:51 +0100)
PRIu64 is "u", we need "x", so PRIx64...

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Cc: Donald Sharp <sharpd@cumulusnetworks.com>
[cherry-picked from master eed831e065694b3746896b126f6ad47548ea9dc0]

tests/test-stream.c

index 7ef6374756a960203594ba25ffa71346b7d43cb5..3ac45eb203ee4efed0e6bbe4fa1e7d860a30378f 100644 (file)
@@ -70,7 +70,7 @@ main (void)
   printf ("c: 0x%hhx\n", stream_getc (s));
   printf ("w: 0x%hx\n", stream_getw (s));
   printf ("l: 0x%x\n", stream_getl (s));
-  printf ("q: 0x%" PRIu64 "\n", stream_getq (s));
+  printf ("q: 0x%" PRIx64 "\n", stream_getq (s));
   
   return 0;
 }