summaryrefslogtreecommitdiff
path: root/src/testcrypto.cc
diff options
context:
space:
mode:
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>2010-12-06 14:30:57 -0800
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>2010-12-06 15:38:14 -0800
commit9811fbd0475b0a16868a054e88ef5066e53658b2 (patch)
tree076d50471e4bc1c6d9bb0ae46d16f8c1309e345b /src/testcrypto.cc
parentab18aaec4a677efa083f49b2183a22802b48808d (diff)
downloadceph-9811fbd0475b0a16868a054e88ef5066e53658b2.tar.gz
logging: Replace derr with dout
derr was really just an alias for STDERR. Unfortunately, after we call daemonize, STDERR is connected to /dev/null. So just replace calls to derr with dout so that our important messages don't get lost. Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
Diffstat (limited to 'src/testcrypto.cc')
-rw-r--r--src/testcrypto.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testcrypto.cc b/src/testcrypto.cc
index 020d3cd0343..1ec784aaa85 100644
--- a/src/testcrypto.cc
+++ b/src/testcrypto.cc
@@ -22,7 +22,7 @@ int main(int argc, char *argv[])
bufferlist enc_out;
if (key.encrypt(enc_in, enc_out) < 0) {
- derr(0) << "couldn't encode!" << dendl;
+ dout(0) << "couldn't encode!" << dendl;
exit(1);
}
@@ -38,7 +38,7 @@ int main(int argc, char *argv[])
dec_in = enc_out;
if (key.decrypt(dec_in, dec_out) < 0) {
- derr(0) << "couldn't decode!" << dendl;
+ dout(0) << "couldn't decode!" << dendl;
}
dout(0) << "decoded len: " << dec_out.length() << dendl;