Skip to content

Commit

Permalink
Merge pull request #69 from mikepurvis/patch-1
Browse files Browse the repository at this point in the history
Fix deprecated logError macros.
  • Loading branch information
dirk-thomas committed Oct 20, 2017
2 parents ae4f199 + 3fcf4c7 commit 01332ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp_common/src/header.cpp
Expand Up @@ -79,7 +79,7 @@ bool Header::parse(uint8_t* buffer, uint32_t size, std::string& error_msg)
if (len > 1000000)
{
error_msg = "Received an invalid TCPROS header. Each element must be prepended by a 4-byte length.";
logError("%s", error_msg.c_str());
CONSOLE_BRIDGE_logError("%s", error_msg.c_str());

return false;
}
Expand All @@ -93,7 +93,7 @@ bool Header::parse(uint8_t* buffer, uint32_t size, std::string& error_msg)
if (eqpos == string::npos)
{
error_msg = "Received an invalid TCPROS header. Each line must have an equals sign.";
logError("%s", error_msg.c_str());
CONSOLE_BRIDGE_logError("%s", error_msg.c_str());

return false;
}
Expand Down

0 comments on commit 01332ef

Please sign in to comment.