aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2012-11-10 18:24:14 -0600
committerRob Landley <rob@landley.net>2012-11-10 18:24:14 -0600
commit9a853484082744d83e3c85a361be748d46003cc9 (patch)
tree63d33c2840d56552af823fa22c41efe3fdcadfef /toys
parentffba380a466e010e475462bdfacf0a7045f9e00b (diff)
downloadtoybox-9a853484082744d83e3c85a361be748d46003cc9.tar.gz
On 32 bit platforms %ld doesn't match uint64_t, so do long long and %lld (rather than deal with verbose PRIu64 nonsense).
Diffstat (limited to 'toys')
-rw-r--r--toys/posix/df.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/toys/posix/df.c b/toys/posix/df.c
index 0625946a..66e86b3b 100644
--- a/toys/posix/df.c
+++ b/toys/posix/df.c
@@ -49,7 +49,7 @@ GLOBALS(
static void show_mt(struct mtab_list *mt)
{
int len;
- uint64_t size, used, avail, percent, block;
+ long long size, used, avail, percent, block;
char *device;
// Return if it wasn't found (should never happen, but with /etc/mtab...)
@@ -88,10 +88,10 @@ static void show_mt(struct mtab_list *mt)
len = 25 - strlen(device);
if (len < 1) len = 1;
if (CFG_DF_PEDANTIC && (toys.optflags & FLAG_P)) {
- xprintf("%s %ld %ld %ld %ld%% %s\n", device, size, used, avail,
+ xprintf("%s %lld %lld %lld %lld%% %s\n", device, size, used, avail,
percent, mt->dir);
} else {
- xprintf("%s% *ld % 10ld % 9ld % 3ld%% %s\n", device, len,
+ xprintf("%s% *lld % 10lld % 9lld % 3lld%% %s\n", device, len,
size, used, avail, percent, mt->dir);
}