]> sourceware.org Git - lvm2.git/commitdiff
Fix format characters for printing size_ts
authorPatrick Caulfield <pcaulfie@redhat.com>
Fri, 16 Nov 2001 10:56:11 +0000 (10:56 +0000)
committerPatrick Caulfield <pcaulfie@redhat.com>
Fri, 16 Nov 2001 10:56:11 +0000 (10:56 +0000)
lib/mm/dbg_malloc.c

index 6358adde98b5a81ba6c13a3ce8b6f0e6ce1c0a76..a186d06e6f511aaa3e340c6015c1bc122b569d2f 100644 (file)
@@ -36,7 +36,7 @@ void *malloc_aux(size_t s, const char *file, int line)
        size_t tsize = s + sizeof(*nb) + sizeof(unsigned long);
 
        if (!(nb = malloc(tsize))) {
-               log_error("couldn't allocate any memory, size = %u", s);
+               log_error("couldn't allocate any memory, size = %lu", s);
                return 0;
        }
 
@@ -159,7 +159,7 @@ int dump_memory(void)
 
        for (mb = _head; mb; mb = mb->next) {
                print_log(_LOG_INFO, mb->file, mb->line, 
-                         "block %d at %p, size %d",
+                         "block %d at %p, size %ld",
                          mb->id, mb->magic, mb->length);
                tot += mb->length;
        }
This page took 0.03768 seconds and 5 git commands to generate.