]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd-nbd: s/cpp_error/cpp_strerror/ to fix FTBFS 14223/head
authorKefu Chai <kchai@redhat.com>
Wed, 29 Mar 2017 11:07:34 +0000 (19:07 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 29 Mar 2017 11:19:23 +0000 (19:19 +0800)
the build failure was introduced by ff4dcf0

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/tools/rbd_nbd/rbd-nbd.cc

index c3c94a3b55757a2e340923e9daaea5d85c919804..b5d87648bf292387ccb3f7d9c810fd8050f89f2a 100644 (file)
@@ -26,7 +26,6 @@
 #include <string.h>
 #include <sys/types.h>
 #include <unistd.h>
-#include <assert.h>
 
 #include <linux/nbd.h>
 #include <linux/fs.h>
@@ -98,7 +97,7 @@ static void handle_signal(int signum)
   derr << "*** Got signal " << sig_str(signum) << " ***" << dendl;
   dout(20) << __func__ << ": " << "sending NBD_DISCONNECT" << dendl;
   if (ioctl(nbd, NBD_DISCONNECT) < 0) {
-    derr << "rbd-nbd: disconnect failed: " << cpp_error(errno) << std::endl;
+    derr << "rbd-nbd: disconnect failed: " << cpp_strerror(errno) << dendl;
   } else {
     dout(20) << __func__ << ": " << "disconnected" << dendl;
   }