diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-04-05 18:57:59 +0400 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-04-05 18:57:59 +0400 |
commit | 465874f3a31da80c3fe444a425afbb840098de1c (patch) | |
tree | 13df25573134eb7828fb2b128af6a01421bc4f83 /coreutils | |
parent | b7b24d61e012eefd8bfc510147fca016f347a349 (diff) |
- use proper macros to print intmax_t.
PRIuMAX and PRIxMAX are defined in inttypes depending on the wordsize.
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/stat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/stat.c b/coreutils/stat.c index 36e0dadf3..30a2a625b 100644 --- a/coreutils/stat.c +++ b/coreutils/stat.c @@ -466,7 +466,7 @@ static int do_stat(char const *filename, char const *format) print_it(format, filename, print_stat, &statbuf); #else if (flags & OPT_TERSE) { - printf("%s %lu %lu %lx %lu %lu %lx %lu %lu %lx %lx %lu %lu %lu %lu\n", + printf("%s %"PRIuMAX" %"PRIuMAX" %lx %lu %lu %"PRIxMAX" %"PRIuMAX" %lu %lx %lx %lu %lu %lu %lu\n", filename, (uintmax_t) (statbuf.st_size), (uintmax_t) statbuf.st_blocks, @@ -500,8 +500,8 @@ static int do_stat(char const *filename, char const *format) else printf(" File: \"%s\"\n", filename); - printf(" Size: %-10lu\tBlocks: %-10lu IO Block: %-6lu %s\n" - "Device: %lxh/%lud\tInode: %-10lu Links: %-5lu", + printf(" Size: %-10"PRIuMAX"\tBlocks: %-10"PRIuMAX" IO Block: %-6lu %s\n" + "Device: %"PRIxMAX"h/%"PRIuMAX"d\tInode: %-10"PRIuMAX" Links: %-5lu", (uintmax_t) (statbuf.st_size), (uintmax_t) statbuf.st_blocks, (unsigned long int) statbuf.st_blksize, |