summaryrefslogtreecommitdiff
path: root/memory.c
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2007-04-26 15:24:20 +0200
committerJens Axboe <jens.axboe@oracle.com>2007-04-26 15:24:20 +0200
commit3deb310183aa83bd74d6d98fbe8974af94451b85 (patch)
tree7378df8144522128989707627e06aba1a5d2073f /memory.c
parentdb1cd90b90d4d5c49db90d5afeb79ea3a3b034d1 (diff)
downloadfio-3deb310183aa83bd74d6d98fbe8974af94451b85.tar.gz
fio-3deb310183aa83bd74d6d98fbe8974af94451b85.tar.bz2
Log error on io buffer allocation
Currently it just exits silently. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'memory.c')
-rw-r--r--memory.c3
1 files changed, 3 insertions, 0 deletions
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;
}