From: Kefu Chai Date: Fri, 25 Mar 2016 13:43:24 +0000 (+0800) Subject: test/system/rados_list_parallel: print oid if rados_write fails X-Git-Tag: v10.1.1~108^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F8309%2Fhead;p=ceph.git test/system/rados_list_parallel: print oid if rados_write fails Signed-off-by: Kefu Chai --- diff --git a/src/test/system/st_rados_create_pool.cc b/src/test/system/st_rados_create_pool.cc index 78083c7732ef..512f3fe1cda7 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; }