From: sfan5 Date: Tue, 29 Mar 2016 17:55:39 +0000 (+0200) Subject: Fix small formatting issue in SRP debug output X-Git-Tag: 0.4.14~130 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8f43aaf6ae5bf0d0e0809999308d84d9ece6eb6a;p=oweals%2Fminetest.git Fix small formatting issue in SRP debug output Writing an u8 to verbosestream writes a char, not it's numeric value. --- diff --git a/src/network/serverpackethandler.cpp b/src/network/serverpackethandler.cpp index ac00b1d80..1bcb78a8a 100644 --- a/src/network/serverpackethandler.cpp +++ b/src/network/serverpackethandler.cpp @@ -1808,7 +1808,7 @@ void Server::handleCommand_FirstSrp(NetworkPacket* pkt) *pkt >> salt >> verification_key >> is_empty; verbosestream << "Server: Got TOSERVER_FIRST_SRP from " << addr_s - << ", with is_empty= " << is_empty << std::endl; + << ", with is_empty=" << (is_empty == 1) << std::endl; // Either this packet is sent because the user is new or to change the password if (cstate == CS_HelloSent) {