From 8926685aaf1bdcd4666e1ef8ebe798a49b8721b5 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sun, 30 Oct 2016 17:11:40 -0400 Subject: [PATCH] beautify debug outputs --- lib/memory.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/memory.c b/lib/memory.c index dd0cb3511..da7c9d6db 100644 --- a/lib/memory.c +++ b/lib/memory.c @@ -19,20 +19,20 @@ void * memory_alloc(const struct memtype *m, size_t len) { - debug(DBG_MEM | 2, "Allocating %zu byte of %s memory", len, m->name); + debug(DBG_MEM | 2, "Allocating %#zx bytes of %s memory", len, m->name); return m->alloc(len); } void * memory_alloc_aligned(const struct memtype *m, size_t len, size_t alignment) { - debug(DBG_MEM | 2, "Allocating %zu byte of %zu-byte-aligned %s memory", len, alignment, m->name); + debug(DBG_MEM | 2, "Allocating %#zx bytes of %#zx-byte-aligned %s memory", len, alignment, m->name); warn("%s: not implemented yet!", __FUNCTION__); return memory_alloc(m, len); } int memory_free(const struct memtype *m, void *ptr, size_t len) { - debug(DBG_MEM | 2, "Releasing %zu bytes of %s memory", len, m->name); + debug(DBG_MEM | 2, "Releasing %#zx bytes of %s memory", len, m->name); return m->free(ptr, len); }