From: Jens Axboe Date: Tue, 27 May 2008 12:13:26 +0000 (+0200) Subject: smalloc: kill another debug printf() X-Git-Tag: fio-1.21-rc2~4 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=076b17cea9c9d6c86b926a166ef58f02334c9bdc;p=fio.git smalloc: kill another debug printf() Signed-off-by: Jens Axboe --- diff --git a/smalloc.c b/smalloc.c index 3d3986b8..c03c4040 100644 --- a/smalloc.c +++ b/smalloc.c @@ -439,10 +439,8 @@ static void *smalloc_pool(struct pool *pool, unsigned int size) #endif ptr = __smalloc_pool(pool, alloc_size); - if (!ptr) { - printf("failed allocating %u\n", alloc_size); + if (!ptr) return NULL; - } hdr = ptr; hdr->size = alloc_size;