update for string_printf and log format warnings

This commit is contained in:
Martin Michelsen
2022-01-30 22:46:01 -08:00
parent d5bd7fb7fc
commit 04b21f34d4
7 changed files with 22 additions and 16 deletions
+3 -2
View File
@@ -96,8 +96,9 @@ void Lobby::remove_client(shared_ptr<Client> c) {
if (this->clients[c->lobby_client_id] != c) {
auto other_c = this->clients[c->lobby_client_id].get();
throw logic_error(string_printf(
"client\'s lobby client id (%hhu) does not match client list (%hhu)",
c->lobby_client_id, other_c ? other_c->lobby_client_id : 0xFF));
"client\'s lobby client id (%hhu) does not match client list (%u)",
c->lobby_client_id,
static_cast<uint8_t>(other_c ? other_c->lobby_client_id : 0xFF)));
}
this->clients[c->lobby_client_id] = NULL;