diff options
author | jkar8572 <jkar8572> | 2008-04-21 15:37:42 +0000 |
---|---|---|
committer | jkar8572 <jkar8572> | 2008-04-21 15:37:42 +0000 |
commit | 826145e5b397af52a303e0a663dece10d2fece0e (patch) | |
tree | a33fc10ecff442386f1da4b5f725b436d897e696 /quotasys.c | |
parent | f13442c8a527a4ab6d34e7a93390fb2f45b70e4d (diff) | |
download | linuxquota-826145e5b397af52a303e0a663dece10d2fece0e.tar.gz |
Format string fixes (Ladislav Michnovic)
Diffstat (limited to 'quotasys.c')
-rw-r--r-- | quotasys.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -369,10 +369,10 @@ void space2str(qsize_t space, char *buf, int format) if (format) for (i = 3; i > 0; i--) if (space >= (1LL << (QUOTABLOCK_BITS*i))*100) { - sprintf(buf, "%Lu%c", (unsigned long long)(space+(1 << (QUOTABLOCK_BITS*i))-1) >> (QUOTABLOCK_BITS*i), suffix[i]); + sprintf(buf, "%llu%c", (unsigned long long)(space+(1 << (QUOTABLOCK_BITS*i))-1) >> (QUOTABLOCK_BITS*i), suffix[i]); return; } - sprintf(buf, "%Lu", (unsigned long long)space); + sprintf(buf, "%llu", (unsigned long long)space); } /* @@ -387,10 +387,10 @@ void number2str(unsigned long long num, char *buf, int format) if (format) for (i = 4, div = 1000000000000LL; i > 0; i--, div /= 1000) if (num >= 100*div) { - sprintf(buf, "%Lu%c", (num+div-1) / div, suffix[i]); + sprintf(buf, "%llu%c", (num+div-1) / div, suffix[i]); return; } - sprintf(buf, "%Lu", num); + sprintf(buf, "%llu", num); } /* |