]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_test_rados_api_watch_notify: print err to debug
authorSage Weil <sage@redhat.com>
Thu, 11 Dec 2014 14:29:39 +0000 (06:29 -0800)
committerSage Weil <sage@redhat.com>
Thu, 11 Dec 2014 14:57:43 +0000 (06:57 -0800)
Signed-off-by: Sage Weil <sage@redhat.com>
src/test/librados/watch_notify.cc

index 3e508025a9beeacea5179ba32b74c45f87b6b142..c28eb9f75e6d3ece6844aac2d0c458400d78a4ef 100644 (file)
@@ -66,7 +66,7 @@ static void watch_notify2_test_cb(void *arg,
 
 static void watch_notify2_test_errcb(void *arg, uint64_t cookie, int err)
 {
-  std::cout << __func__ << " cookie " << cookie << std::endl;
+  std::cout << __func__ << " cookie " << cookie << " err " << err << std::endl;
   assert(cookie > 1000);
   notify_err = err;
 }
@@ -89,7 +89,8 @@ public:
   }
 
   void handle_error(uint64_t cookie, int err) {
-    std::cout << __func__ << " cookie " << cookie << std::endl;
+    std::cout << __func__ << " cookie " << cookie
+             << " err " << err << std::endl;
     assert(cookie > 1000);
     notify_err = err;
   }