summaryrefslogtreecommitdiff
path: root/src/osdmaptool.cc
diff options
context:
space:
mode:
authorTommi Virtanen <tv@hq.newdream.net>2011-01-12 10:24:08 -0800
committerTommi Virtanen <tv@hq.newdream.net>2011-01-12 10:24:08 -0800
commitd3505a3818fa1a16904eb6f877872d377dd52671 (patch)
treebd9e4016af4188e981addf96ad059883411084ff /src/osdmaptool.cc
parentfad097224cbb96065e256752b7afdfd51bb0fdf7 (diff)
downloadceph-d3505a3818fa1a16904eb6f877872d377dd52671.tar.gz
Fix osdmaptool error reporting.
Diffstat (limited to 'src/osdmaptool.cc')
-rw-r--r--src/osdmaptool.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osdmaptool.cc b/src/osdmaptool.cc
index 61265827b04..7e041fd650f 100644
--- a/src/osdmaptool.cc
+++ b/src/osdmaptool.cc
@@ -126,7 +126,7 @@ int main(int argc, const char **argv)
}
}
else {
- cerr << me << ": couldn't open " << fn << ": " << cpp_strerror(r)
+ cerr << me << ": couldn't open " << fn << ": " << cpp_strerror(-r)
<< std::endl;
return -1;
}