mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[logging] remove __FUNCTION__ from actual message
prefer the log formatter to provide that information.
This commit is contained in:
@@ -269,14 +269,14 @@ BYTE* crypto_cert_hash(X509* xcert, const char* hash, UINT32* length)
|
||||
}
|
||||
if (!xcert || !length)
|
||||
{
|
||||
WLog_ERR(TAG, "[%s] Invalid arugments: xcert=%p, length=%p", __FUNCTION__, xcert, length);
|
||||
WLog_ERR(TAG, "Invalid arugments: xcert=%p, length=%p", xcert, length);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
fp = calloc(fp_len, sizeof(BYTE));
|
||||
if (!fp)
|
||||
{
|
||||
WLog_ERR(TAG, "[%s] could not allocate %" PRIuz " bytes", __FUNCTION__, fp_len);
|
||||
WLog_ERR(TAG, "could not allocate %" PRIuz " bytes", fp_len);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
@@ -502,8 +502,7 @@ BOOL per_read_octet_string(wStream* s, const BYTE* oct_str, UINT16 length, UINT1
|
||||
|
||||
if (mlength + min != length)
|
||||
{
|
||||
WLog_ERR(TAG, "[%s] length mismatch: %" PRIu16 "!= %" PRIu16, __FUNCTION__, mlength + min,
|
||||
length);
|
||||
WLog_ERR(TAG, "length mismatch: %" PRIu16 "!= %" PRIu16, mlength + min, length);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user