Fix 64-bit compile warning.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 30 Jul 2008 01:55:04 +0000 (11:55 +1000)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 30 Jul 2008 01:55:04 +0000 (11:55 +1000)
ccan/alloc/alloc.c

index c70b7fa7817a40da51f15cddedb7ddfb6db6aa18..5c851d824469b334c2425d83ef2ce36d9a317cbb 100644 (file)
@@ -1061,7 +1061,7 @@ void alloc_visualize(FILE *out, void *pool, unsigned long poolsize)
                        if (meta[j / 8] & (1 << (j % 8)))
                                total++;
 
-               printf("  %u: %u/%u (%u%% density)\n",
+               printf("  %u: %u/%zu (%zu%% density)\n",
                       uc->size[j], total, SUBPAGE_METAOFF / uc->size[i],
                       (total * 100) / (SUBPAGE_METAOFF / uc->size[i]));
        }