options: cast page_size to unsigned long for sprintf()
authorJens Axboe <axboe@kernel.dk>
Tue, 9 Oct 2012 16:30:48 +0000 (10:30 -0600)
committerJens 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

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;
 
        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);
        fio_keywords[0].replace = strdup(buf);
 
        mb_memory = os_phys_mem() / (1024 * 1024);