Use PRIu64 instead of %llu, where appropriate
authorMichal Soltys <soltys@ziu.info>
Mon, 1 Aug 2011 21:09:13 +0000 (23:09 +0200)
committerMichal Soltys <soltys@ziu.info>
Mon, 1 Aug 2011 22:24:14 +0000 (00:24 +0200)
Signed-off-by: Michal Soltys <soltys@ziu.info>
com32/chain/chain.c
com32/chain/mangle.c

index bb7d2a4..f458253 100644 (file)
@@ -624,13 +624,13 @@ int main(int argc, char *argv[])
        memcpy(data + ndata++, &hdat, sizeof(hdat));
 
 #ifdef DEBUG
-    printf("iter->di dsk, bps: %X, %u\niter->di lbacnt, C*H*S: %llu, %u\n"
+    printf("iter->di dsk, bps: %X, %u\niter->di lbacnt, C*H*S: %"PRIu64", %u\n"
           "iter->di C, H, S: %u, %u, %u\n",
        iter->di.disk, iter->di.bps,
        iter->di.lbacnt, iter->di.cyl * iter->di.head * iter->di.spt,
        iter->di.cyl, iter->di.head, iter->di.spt);
     printf("iter idx: %d\n", iter->index);
-    printf("iter lba: %llu\n", iter->start_lba);
+    printf("iter lba: %"PRIu64"\n", iter->start_lba);
     if (opt.hand)
        printf("hand lba: %u\n",
                ((struct disk_dos_part_entry *)hdat.data)->start_lba);
index 23b63fe..8358106 100644 (file)
@@ -3,6 +3,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <stdint.h>
+#include <dprintf.h>
 #include <syslinux/config.h>
 #include "common.h"
 #include "chain.h"