1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

Use %zu for size_t, like God intended.

This commit is contained in:
Dag-Erling Smørgrav 2004-02-18 21:51:02 +00:00
parent eae1afd9a2
commit 5476ba5545
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=125977

View File

@ -157,7 +157,7 @@ stat_bytes(size_t bytes)
bytes /= 1024;
prefix++;
}
snprintf(str, sizeof str, "%4ju %cB", (uintmax_t)bytes, *prefix);
snprintf(str, sizeof str, "%4zu %cB", bytes, *prefix);
return (str);
}