[winpr,wlog] include function name in log message
default to print the function the log message was called from
This commit is contained in:
parent
641022b795
commit
1dc2225bd2
@ -664,7 +664,7 @@ static BOOL freerdp_dsp_channel_mix(FREERDP_DSP_CONTEXT* context, const BYTE* sr
|
||||
|
||||
case 2: /* We only support stereo, so we can not handle this case. */
|
||||
default: /* Unsupported number of channels */
|
||||
WLog_WARN(TAG, "unsuported source channel count %" PRIu16, srcFormat->nChannels);
|
||||
WLog_WARN(TAG, "unsupported source channel count %" PRIu16, srcFormat->nChannels);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
@ -692,7 +692,7 @@ static BOOL freerdp_dsp_channel_mix(FREERDP_DSP_CONTEXT* context, const BYTE* sr
|
||||
|
||||
case 1: /* Invalid, do we want to use a 0 channel sound? */
|
||||
default: /* Unsupported number of channels */
|
||||
WLog_WARN(TAG, "unsuported channel count %" PRIu16, srcFormat->nChannels);
|
||||
WLog_WARN(TAG, "unsupported channel count %" PRIu16, srcFormat->nChannels);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -541,7 +541,7 @@ static BOOL certificate_write_server_public_signature(const rdpCertificate* cert
|
||||
Stream_Write_UINT16(s, wSignatureBlobType);
|
||||
Stream_Write_UINT16(s, wSignatureBlobLen);
|
||||
|
||||
WLog_WARN(TAG, "TODO: Calcualte proper signature");
|
||||
WLog_WARN(TAG, "TODO: Calculate proper signature");
|
||||
|
||||
Stream_Write(s, signature, wSignatureBlobLen);
|
||||
return TRUE;
|
||||
|
@ -403,9 +403,9 @@ wLogLayout* WLog_Layout_New(wLog* log)
|
||||
else
|
||||
{
|
||||
#ifdef ANDROID
|
||||
layout->FormatString = _strdup("[pid=%pid:tid=%tid] - ");
|
||||
layout->FormatString = _strdup("[pid=%pid:tid=%tid] - [%fn]: ");
|
||||
#else
|
||||
layout->FormatString = _strdup("[%hr:%mi:%se:%ml] [%pid:%tid] [%lv][%mn] - ");
|
||||
layout->FormatString = _strdup("[%hr:%mi:%se:%ml] [%pid:%tid] [%lv][%mn] - [%fn]: ");
|
||||
#endif
|
||||
|
||||
if (!layout->FormatString)
|
||||
|
Loading…
Reference in New Issue
Block a user