This commit is contained in:
Jean-Francois Dockes 2020-03-25 16:55:34 +01:00
parent 207bfec93e
commit 023bdc055e

View File

@ -137,11 +137,11 @@ bool CmdTalk::Internal::readDataElement(string& name, string &data)
return false; return false;
} }
LOGDEB1("CmdTalk:rde: line [" << (ibuf) << "]\n" ); LOGDEB1("CmdTalk:rde: line [" << ibuf << "]\n");
// Empty line (end of message) ? // Empty line (end of message) ?
if (!ibuf.compare("\n")) { if (!ibuf.compare("\n")) {
LOGDEB("CmdTalk: Got empty line\n" ); LOGDEB1("CmdTalk: Got empty line\n");
return true; return true;
} }
@ -149,7 +149,7 @@ bool CmdTalk::Internal::readDataElement(string& name, string &data)
vector<string> tokens; vector<string> tokens;
stringToTokens(ibuf, tokens); stringToTokens(ibuf, tokens);
if (tokens.size() != 2) { if (tokens.size() != 2) {
LOGERR("CmdTalk: bad line in filter output: [" << (ibuf) << "]\n" ); LOGERR("CmdTalk: bad line in filter output: [" << ibuf << "]\n");
return false; return false;
} }
vector<string>::iterator it = tokens.begin(); vector<string>::iterator it = tokens.begin();
@ -157,7 +157,7 @@ bool CmdTalk::Internal::readDataElement(string& name, string &data)
string& slen = *it; string& slen = *it;
int len; int len;
if (sscanf(slen.c_str(), "%d", &len) != 1) { if (sscanf(slen.c_str(), "%d", &len) != 1) {
LOGERR("CmdTalk: bad line in filter output: [" << (ibuf) << "]\n" ); LOGERR("CmdTalk: bad line in filter output: [" << ibuf << "]\n");
return false; return false;
} }