debuggers.hg
changeset 10939:9632ececc8f4
[TOOLS] lomount: Fix printf formats inside #ifdef DEBUG.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
author | kfraser@localhost.localdomain |
---|---|
date | Wed Aug 02 10:13:30 2006 +0100 (2006-08-02) |
parents | 637e64826342 |
children | 8f452e26224a |
files | tools/misc/lomount/lomount.c |
line diff
1.1 --- a/tools/misc/lomount/lomount.c Wed Aug 02 10:08:33 2006 +0100 1.2 +++ b/tools/misc/lomount/lomount.c Wed Aug 02 10:13:30 2006 +0100 1.3 @@ -158,7 +158,7 @@ load_gpt (const char *diskimage, struct 1.4 entry_size = read_le4 (&data[84]); 1.5 1.6 #ifdef DEBUG 1.7 - fprintf(stderr, "lba entries: %lu, nbr_part: %u, entry_size: %lu\n", 1.8 + fprintf(stderr, "lba entries: %llu, nbr_part: %u, entry_size: %lu\n", 1.9 entries_lba, nbr_part, entry_size); 1.10 #endif 1.11 part = malloc (nbr_part * sizeof (struct pentry)); 1.12 @@ -404,7 +404,7 @@ int main(int argc, char ** argv) 1.13 value is off by (larger than) a value less than one. */ 1.14 sec = 512; /* TODO: calculate real sector size */ 1.15 #ifdef DEBUG 1.16 - printf("sec: %d\n", sec); 1.17 + printf("sec: %llu\n", sec); 1.18 #endif 1.19 if (partition > nbr_part) 1.20 { 1.21 @@ -421,7 +421,7 @@ int main(int argc, char ** argv) 1.22 1.23 pnum = sec * num; 1.24 #ifdef DEBUG 1.25 - printf("offset = %d\n", pnum); 1.26 + printf("offset = %llu\n", pnum); 1.27 #endif 1.28 snprintf(buf, sizeof(buf), "mount -oloop,offset=%lld %s %s", 1.29 pnum, diskimage, argv2);