projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aeb32df
)
options: cast page_size to unsigned long for sprintf()
author
Jens Axboe
<axboe@kernel.dk>
Tue, 9 Oct 2012 16:30:48 +0000
(10:30 -0600)
committer
Jens Axboe
<axboe@kernel.dk>
Tue, 9 Oct 2012 16:30:48 +0000
(10:30 -0600)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
options.c
patch
|
blob
|
blame
|
history
diff --git
a/options.c
b/options.c
index dd71f1e47747d550a0cb5f20228ab99cffca3504..84101d1a3752ce3e3c0f60b9587962edab4562a1 100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-2493,7
+2493,7
@@
void fio_keywords_init(void)
char buf[128];
long l;
- sprintf(buf, "%lu", page_size);
+ sprintf(buf, "%lu",
(unsigned long)
page_size);
fio_keywords[0].replace = strdup(buf);
mb_memory = os_phys_mem() / (1024 * 1024);