[winpr,wlog] Replace WLog_PrintMessage calls

Prefer WLog_PrintTextMessage to have proper format string checks in
place.
This commit is contained in:
akallabeth
2025-08-13 10:46:57 +02:00
parent df89b04424
commit c3e507a82e
28 changed files with 133 additions and 129 deletions

View File

@@ -75,8 +75,8 @@ static BOOL BitmapUpdateProxyEx(rdpShadowClient* client, const BITMAP_UPDATE* bi
wLog* log = WLog_Get(TAG);
if (WLog_IsLevelActive(log, log_level))
{
WLog_PrintMessage(log, WLOG_MESSAGE_TEXT, log_level, line, file, fkt,
"BitmapUpdate[count %" PRIu32 "] failed", bitmap->number);
WLog_PrintTextMessage(log, log_level, line, file, fkt,
"BitmapUpdate[count %" PRIu32 "] failed", bitmap->number);
}
return FALSE;
}
@@ -97,8 +97,8 @@ static BOOL BitmapUpdateProxyEx(rdpShadowClient* client, const BITMAP_UPDATE* bi
wLog* log = WLog_Get(TAG);
if (WLog_IsLevelActive(log, log_level))
{
WLog_PrintMessage(log, WLOG_MESSAGE_TEXT, log_level, line, file, fkt,
"BitmapUpdate[count 1, at %" PRIu32 "] failed", x);
WLog_PrintTextMessage(log, log_level, line, file, fkt,
"BitmapUpdate[count 1, at %" PRIu32 "] failed", x);
}
return FALSE;
}

View File

@@ -53,9 +53,9 @@ static int fail_at_(const COMMAND_LINE_ARGUMENT_A* arg, int rc, const char* file
const DWORD level = WLOG_ERROR;
wLog* log = WLog_Get(TAG);
if (WLog_IsLevelActive(log, level))
WLog_PrintMessage(log, WLOG_MESSAGE_TEXT, level, line, file, fkt,
"Command line parsing failed at '%s' value '%s' [%d]", arg->Name,
arg->Value, rc);
WLog_PrintTextMessage(log, level, line, file, fkt,
"Command line parsing failed at '%s' value '%s' [%d]", arg->Name,
arg->Value, rc);
return rc;
}