cmocka: Fix a build warning on x86.
authorAndreas Schneider <asn@cryptomilk.org>
Mon, 15 Oct 2012 15:01:58 +0000 (17:01 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 15 Oct 2012 15:01:58 +0000 (17:01 +0200)
src/cmocka.c

index a2af6c3..8da2272 100755 (executable)
@@ -1428,7 +1428,7 @@ void _test_free(void* const ptr, const char* file, const int line) {
                     print_error(
                         "Guard block of %p size=%lu allocated by "
                         SOURCE_LOCATION_FORMAT " at %p is corrupt\n",
-                        ptr, block_info->size,
+                        ptr, (unsigned long)block_info->size,
                         block_info->location.file, block_info->location.line,
                         &guard[j]);
                     _fail(file, line);