mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[winpr,wlog] Replace WLog_PrintMessage calls
Prefer WLog_PrintTextMessage to have proper format string checks in place.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user