Skip to content

Commit

Permalink
rbd-nbd: s/cpp_error/cpp_strerror/ to fix FTBFS
Browse files Browse the repository at this point in the history
the build failure was introduced by ff4dcf0

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit c12ecd9)
  • Loading branch information
tchaikov authored and smithfarm committed Jul 4, 2017
1 parent 4d310c2 commit 36e2199
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/tools/rbd_nbd/rbd-nbd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -93,7 +92,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;
}
Expand Down

0 comments on commit 36e2199

Please sign in to comment.