1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Fix format characters for printing size_ts

This commit is contained in:
Patrick Caulfield 2001-11-16 10:56:11 +00:00
parent 5f68d85896
commit f96175e75e

View 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); size_t tsize = s + sizeof(*nb) + sizeof(unsigned long);
if (!(nb = malloc(tsize))) { 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; return 0;
} }
@ -159,7 +159,7 @@ int dump_memory(void)
for (mb = _head; mb; mb = mb->next) { for (mb = _head; mb; mb = mb->next) {
print_log(_LOG_INFO, mb->file, mb->line, 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); mb->id, mb->magic, mb->length);
tot += mb->length; tot += mb->length;
} }