summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tests/debug-tests.c2
-rw-r--r--src/util/debug.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/debug-tests.c b/src/tests/debug-tests.c
index a751d836..f73f9bd7 100644
--- a/src/tests/debug-tests.c
+++ b/src/tests/debug-tests.c
@@ -222,7 +222,7 @@ int test_helper_debug_check_message(int level, int msgmode)
}
if (msgmode == 0) {
- DEBUG(level, (body));
+ DEBUG(level, ("%s", body));
} else {
DEBUG_MSG(level, __FUNCTION__, "some error");
}
diff --git a/src/util/debug.c b/src/util/debug.c
index 3bf5e75a..324f0dae 100644
--- a/src/util/debug.c
+++ b/src/util/debug.c
@@ -274,5 +274,5 @@ int rotate_debug_files(void)
void talloc_log_fn(const char *message)
{
- DEBUG(SSSDBG_FATAL_FAILURE, (message));
+ DEBUG(SSSDBG_FATAL_FAILURE, ("%s", message));
}