mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 19:54:40 +02:00
wolfcrypt/src/logging.c: fixes for cppcheck complaints: invalidPrintfArgType_sint
This commit is contained in:
@@ -487,7 +487,7 @@ void WOLFSSL_ERROR(int error)
|
|||||||
if (error < 0)
|
if (error < 0)
|
||||||
error = error - (2 * error); /* get absolute value */
|
error = error - (2 * error); /* get absolute value */
|
||||||
XSNPRINTF(buffer, sizeof(buffer),
|
XSNPRINTF(buffer, sizeof(buffer),
|
||||||
"wolfSSL error occurred, error = %d line:%d file:%s",
|
"wolfSSL error occurred, error = %d line:%u file:%s",
|
||||||
error, line, file);
|
error, line, file);
|
||||||
|
|
||||||
if (wc_AddErrorNode(error, line, buffer, (char*)file) != 0) {
|
if (wc_AddErrorNode(error, line, buffer, (char*)file) != 0) {
|
||||||
|
Reference in New Issue
Block a user