Skip to content

Commit

Permalink
use std::showbase instead of literal 0x
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-zimoch authored and mdavidsaver committed Nov 19, 2021
1 parent ec85ffc commit c63d073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/remote/abstractResponseHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void ResponseHandler::handleResponse(osiSockAddr* responseFrom,
ipAddrToDottedIP(&responseFrom->ia, ipAddrStr, sizeof(ipAddrStr));

std::ios::fmtflags initialflags = std::cerr.flags();
std::cerr<<"Message [0x"<<std::hex<<(int)command<<", v0x"
std::cerr<<"Message ["<<std::hex<<std::showbase<<(int)command<<", v"
<<int(version)<<"] received from "<<ipAddrStr<<" on "<<transport->getRemoteName()
<<" : "<<_description<<"\n"
<<HexDump(*payloadBuffer, payloadSize).limit(0xffff);
Expand Down

0 comments on commit c63d073

Please sign in to comment.