# HG changeset patch # User gingold@virtu10 # Node ID 8eb45f399f28877e083985d6cf0c8cf478885ae8 # Parent 4acc6d51f3893d2b0c33c021f459ac12482858d9 Fix printf formats inside #ifdef DEBUG. Signed-off-by: Tristan Gingold diff -r 4acc6d51f389 -r 8eb45f399f28 tools/misc/lomount/lomount.c --- a/tools/misc/lomount/lomount.c Tue Aug 01 14:58:20 2006 -0600 +++ b/tools/misc/lomount/lomount.c Wed Aug 02 08:45:45 2006 +0200 @@ -158,7 +158,7 @@ load_gpt (const char *diskimage, struct entry_size = read_le4 (&data[84]); #ifdef DEBUG - fprintf(stderr, "lba entries: %lu, nbr_part: %u, entry_size: %lu\n", + fprintf(stderr, "lba entries: %llu, nbr_part: %u, entry_size: %lu\n", entries_lba, nbr_part, entry_size); #endif part = malloc (nbr_part * sizeof (struct pentry)); @@ -404,7 +404,7 @@ int main(int argc, char ** argv) value is off by (larger than) a value less than one. */ sec = 512; /* TODO: calculate real sector size */ #ifdef DEBUG - printf("sec: %d\n", sec); + printf("sec: %llu\n", sec); #endif if (partition > nbr_part) { @@ -421,7 +421,7 @@ int main(int argc, char ** argv) pnum = sec * num; #ifdef DEBUG - printf("offset = %d\n", pnum); + printf("offset = %llu\n", pnum); #endif snprintf(buf, sizeof(buf), "mount -oloop,offset=%lld %s %s", pnum, diskimage, argv2);