From 71c41be3b1326ca73c0765f62987d97e0e2723ea Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 25 Mar 2016 21:43:24 +0800 Subject: [PATCH] test/system/rados_list_parallel: print oid if rados_write fails Signed-off-by: Kefu Chai --- src/test/system/st_rados_create_pool.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/system/st_rados_create_pool.cc b/src/test/system/st_rados_create_pool.cc index 78083c7732e..512f3fe1cda 100644 --- a/src/test/system/st_rados_create_pool.cc +++ b/src/test/system/st_rados_create_pool.cc @@ -93,7 +93,8 @@ run() std::string buf(get_random_buf(256)); int ret = rados_write(io_ctx, oid, buf.c_str(), buf.size(), 0); if (ret != 0) { - printf("%s: rados_write error %d\n", get_id_str(), ret); + printf("%s: rados_write(%s) failed with error: %d\n", + get_id_str(), oid, ret); ret_val = ret; goto out; }