From 8bc8da2577c0f0c3b4f33b3190de57a2b4d13a24 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Tue, 13 Feb 2018 13:03:51 +0000 Subject: 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. --- coreutils/du.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coreutils') 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) size++; size >>= 1; } - printf("%llu\t%s\n", size, filename); + printf("%"LL_FMT"u\t%s\n", size, filename); #endif } -- cgit v1.2.3-55-g6feb