From 11e06b46b7c83b3bc68e17b7b5013f59e2bab8ef Mon Sep 17 00:00:00 2001 From: Pavel Charvat Date: Sat, 26 Aug 2017 11:04:28 +0200 Subject: [PATCH] Mempool: Fix bug in a DBG() message. --- ucw/mempool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ucw/mempool.c b/ucw/mempool.c index 0f315378..05251c04 100644 --- a/ucw/mempool.c +++ b/ucw/mempool.c @@ -2,7 +2,7 @@ * UCW Library -- Memory Pools (One-Time Allocation) * * (c) 1997--2014 Martin Mares - * (c) 2007--2015 Pavel Charvat + * (c) 2007--2017 Pavel Charvat * * This software may be freely distributed and used according to the terms * of the GNU Lesser General Public License. @@ -130,7 +130,7 @@ mp_new(size_t chunk_size) chunk_size = mp_align_size(MAX(sizeof(struct mempool), chunk_size)); struct mempool_chunk *chunk = mp_new_chunk(NULL, chunk_size); struct mempool *pool = (void *)chunk - chunk_size; - DBG("Creating mempool %p with %u bytes long chunks", pool, chunk_size); + DBG("Creating mempool %p with %zu bytes long chunks", pool, chunk_size); chunk->next = NULL; #ifdef CONFIG_DEBUG chunk->pool = pool; -- 2.39.2