Log error on io buffer allocation
authorJens Axboe <jens.axboe@oracle.com>
Thu, 26 Apr 2007 13:24:20 +0000 (15:24 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 26 Apr 2007 13:24:20 +0000 (15:24 +0200)
Currently it just exits silently.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
memory.c

index f67dd6d9ffa09a61030fed8378f8ce9d2a523d15..d075c3526e6947483eee23dd006aeeebe5830f02 100644 (file)
--- 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;
 }