Mercurial > hg > toybox
changeset 1014:9c22b351d501
Fix wrong printf type.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 18 Aug 2013 14:04:18 -0500 |
parents | c1a115650476 |
children | 27275d0d97e9 |
files | toys/posix/du.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/toys/posix/du.c Sun Aug 18 14:01:46 2013 -0500 +++ b/toys/posix/du.c Sun Aug 18 14:04:18 2013 -0500 @@ -63,7 +63,7 @@ if (sz < 10) { sprintf(buf, "%llu", size>>(10*(index-1))); printf("%c.%c", buf[0], buf[1]); - } else printf("%llu", sz); + } else printf("%d", sz); if (index) printf("%c", " KMGTPE"[index]); } else { int bits = 10;