Make format string a string literal in some debug statements

Signed-off-by: Thomas Egerer <[email protected]>
This commit is contained in:
Thomas Egerer
2022-12-21 17:33:37 +01:00
committed by Tobias Brunner
parent cb6516cc0a
commit 5e9f5fb32e
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -24,6 +24,6 @@
void charon_terminate(char *msg)
{
DBG1(DBG_DMN, "critical TKM error, terminating!");
DBG1(DBG_DMN, msg);
DBG1(DBG_DMN, "%s", msg);
kill(0, SIGTERM);
}
+3 -3
View File
@@ -401,7 +401,7 @@ CALLBACK(on_write, bool,
if (!ret && errmsg[0])
{
DBG1(DBG_CFG, errmsg);
DBG1(DBG_CFG, "%s", errmsg);
}
}
@@ -557,7 +557,7 @@ CALLBACK(on_read, bool,
if (!ret && errmsg[0])
{
DBG1(DBG_CFG, errmsg);
DBG1(DBG_CFG, "%s", errmsg);
}
}
@@ -674,7 +674,7 @@ CALLBACK(flush_messages, void,
if (!ret && errmsg[0])
{
DBG1(DBG_CFG, errmsg);
DBG1(DBG_CFG, "%s", errmsg);
}
}