projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'ioring_add_sync_file_range' of https://github.com/anarazel/fio
[fio.git]
/
lib
/
num2str.c
diff --git
a/lib/num2str.c
b/lib/num2str.c
index ff8a365bcaed516e07c69aac91f96e73952faa2b..1abe22f33794c0ccf6b724e74aef7a1f62271166 100644
(file)
--- a/
lib/num2str.c
+++ b/
lib/num2str.c
@@
-72,7
+72,7
@@
char *num2str(uint64_t num, int maxlen, int base, int pow2, enum n2s_unit units)
* Divide by K/Ki until string length of num <= maxlen.
*/
modulo = -1U;
- while (post_index <
sizeof
(sistr)) {
+ while (post_index <
ARRAY_SIZE
(sistr)) {
sprintf(tmp, "%llu", (unsigned long long) num);
if (strlen(tmp) <= maxlen)
break;