From 87e0759bf26f9c64c3e6aaf4abb201cb5048e88f Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 27 Feb 2017 00:20:06 +0800 Subject: [PATCH] auth/cephx: print challenges in hex this matches the CephxServiceHandler::handle_request(), hence would be easier for debugging. Signed-off-by: Kefu Chai --- src/auth/cephx/CephxClientHandler.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/auth/cephx/CephxClientHandler.cc b/src/auth/cephx/CephxClientHandler.cc index 7b8690406b2..816b6526a00 100644 --- a/src/auth/cephx/CephxClientHandler.cc +++ b/src/auth/cephx/CephxClientHandler.cc @@ -70,7 +70,8 @@ int CephxClientHandler::build_request(bufferlist& bl) const ::encode(req, bl); - ldout(cct, 10) << "get auth session key: client_challenge " << req.client_challenge << dendl; + ldout(cct, 10) << "get auth session key: client_challenge " + << hex << req.client_challenge << dendl; return 0; } @@ -117,7 +118,8 @@ int CephxClientHandler::handle_response(int ret, bufferlist::iterator& indata) CephXServerChallenge ch; ::decode(ch, indata); server_challenge = ch.server_challenge; - ldout(cct, 10) << " got initial server challenge " << server_challenge << dendl; + ldout(cct, 10) << " got initial server challenge " + << hex << server_challenge << dendl; starting = false; tickets.invalidate_ticket(CEPH_ENTITY_TYPE_AUTH);