]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/system/rados_list_parallel: print oid if rados_write fails 8309/head
authorKefu Chai <kchai@redhat.com>
Fri, 25 Mar 2016 13:43:24 +0000 (21:43 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 25 Mar 2016 13:43:24 +0000 (21:43 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/system/st_rados_create_pool.cc

index 78083c7732ef8e8fc0d319b4117550db64819a69..512f3fe1cda75cbcf0c65fc25e356bd32b2432c1 100644 (file)
@@ -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;
     }