[logging] remove __FUNCTION__ from actual message

prefer the log formatter to provide that information.
This commit is contained in:
Armin Novak
2023-01-23 12:03:18 +01:00
committed by akallabeth
parent f4ee5226b0
commit 641022b795
107 changed files with 736 additions and 820 deletions

View File

@@ -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;
}

View File

@@ -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;
}