From a4cfc4775cc1c8f1eb9b7ed5ffd3024d9be6747c Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 9 Oct 2012 10:30:48 -0600 Subject: [PATCH] options: cast page_size to unsigned long for sprintf() Signed-off-by: Jens Axboe --- options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options.c b/options.c index dd71f1e4..84101d1a 100644 --- 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); -- 2.25.1