aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2018-02-13 13:03:51 +0000
committerRon Yorston <rmy@pobox.com>2018-02-13 13:03:51 +0000
commit8bc8da2577c0f0c3b4f33b3190de57a2b4d13a24 (patch)
tree634adeb1170b0a498affb74f164c0fb138edc1f6 /coreutils
parent834805db9fe525dff26267fb7ba2794cee3ed51a (diff)
downloadbusybox-w32-8bc8da2577c0f0c3b4f33b3190de57a2b4d13a24.tar.gz
busybox-w32-8bc8da2577c0f0c3b4f33b3190de57a2b4d13a24.tar.bz2
busybox-w32-8bc8da2577c0f0c3b4f33b3190de57a2b4d13a24.zip
du: use Windows-compatible print formats
Commit 18afed0f9 replaced %ll* formats with Windows equivalents to silence compiler warnings. Some format strings in du were missed because they weren't compiled or weren't string literals. These fixes make 'du -h' work as expected on Windows XP.
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/du.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/du.c b/coreutils/du.c
index d5ce46cf2..a0c99040e 100644
--- a/coreutils/du.c
+++ b/coreutils/du.c
@@ -133,7 +133,7 @@ static void print(unsigned long long size, const char *filename)
133 size++; 133 size++;
134 size >>= 1; 134 size >>= 1;
135 } 135 }
136 printf("%llu\t%s\n", size, filename); 136 printf("%"LL_FMT"u\t%s\n", size, filename);
137#endif 137#endif
138} 138}
139 139