From 7404b958339ebe2101965d8c890b38dcc0e4abfd Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 13 Feb 2013 13:38:20 +0100 Subject: [PATCH] Avoid compiler warning by casting to match printf() specifier. --- src/debug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/debug.c b/src/debug.c index d6df93c62..65174af9d 100644 --- a/src/debug.c +++ b/src/debug.c @@ -704,7 +704,8 @@ int memtest_test_linux_anonymous_maps(void) { start_vect[regions] = start_addr; size_vect[regions] = size; - printf("Testing %lx %lu\n", start_vect[regions], size_vect[regions]); + printf("Testing %lx %lu\n", (unsigned long) start_vect[regions], + (unsigned long) size_vect[regions]); regions++; }