From: Jens Axboe Date: Thu, 26 Apr 2007 13:24:20 +0000 (+0200) Subject: Log error on io buffer allocation X-Git-Tag: fio-1.16.2~29 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=3deb310183aa83bd74d6d98fbe8974af94451b85;p=fio.git Log error on io buffer allocation Currently it just exits silently. Signed-off-by: Jens Axboe --- diff --git a/memory.c b/memory.c index f67dd6d9..d075c352 100644 --- a/memory.c +++ b/memory.c @@ -145,6 +145,9 @@ int allocate_io_mem(struct thread_data *td) ret = 1; } + if (ret) + td_verror(td, ENOMEM, "iomem allocation"); + return ret; }