Fixed Android compilation

This commit is contained in:
Sergii Pylypenko
2021-12-10 03:40:35 +02:00
parent 7120636d01
commit f09fa9f340
2 changed files with 4 additions and 4 deletions

View File

@@ -121,7 +121,7 @@ char *DumpDebugFacilityNames(char *buf, char *last)
void DebugPrint(const char *level, const std::string &message)
{
#ifdef __ANDROID__
__android_log_print(ANDROID_LOG_INFO, "OpenTTD", "[%s] %s", dbg, buf);
__android_log_print(ANDROID_LOG_INFO, "OpenTTD", "[%s] %s", level, message.c_str());
#endif
if (_debug_socket != INVALID_SOCKET) {
std::string msg = fmt::format("{}dbg: [{}] {}\n", GetLogPrefix(), level, message);