Fix log format misuse

Harden log channel methods against non-constant string.
This commit is contained in:
Nekotekina 2019-10-09 02:14:52 +03:00
parent a29d4150df
commit 8f604ddded
4 changed files with 8 additions and 8 deletions

View file

@ -257,7 +257,7 @@ bool gdb_thread::read_cmd(gdb_cmd& out_cmd)
}
catch (const std::runtime_error& e)
{
gdbDebugServer.error(e.what());
gdbDebugServer.error("%s", e.what());
return false;
}
}
@ -855,7 +855,7 @@ void gdb_thread::operator()()
client_socket = -1;
}
gdbDebugServer.error(e.what());
gdbDebugServer.error("%s", e.what());
}
}
}