wwviaudio: Use correct C99 format specifiers for uint64_t
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 17 Nov 2016 12:23:34 +0000 (23:23 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 17 Nov 2016 12:23:34 +0000 (23:23 +1100)
This fixes a warning.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
ccan/wwviaudio/wwviaudio.c

index 5870411a39f40f1c13197f0b347267944d06a9cb..d6fabfbd761007ab661f120a0dc6fb16b859f78f 100644 (file)
@@ -29,6 +29,7 @@
 #include <unistd.h>
 #include <string.h>
 #include <stdlib.h>
+#include <inttypes.h>
 
 #define WWVIAUDIO_DEFINE_GLOBALS
 #include "wwviaudio.h"
@@ -147,8 +148,8 @@ int wwviaudio_read_ogg_clip(int clipnum, char *filename)
        rc = ogg_to_pcm(filebuf, &clip[clipnum].sample, &samplesize,
                &sample_rate, &nchannels, &nframes);
        if (clip[clipnum].sample == NULL) {
-               printf("Can't get memory for sound data for %llu frames in %s\n",
-                       nframes, filebuf);
+               printf("Can't get memory for sound data for %"PRIu64
+                      " frames in %s\n", nframes, filebuf);
                goto error;
        }