From 2b6afc3c88377200511c2dbed81b5b134fc7c81d Mon Sep 17 00:00:00 2001 From: Chengwei Yang Date: Tue, 17 Sep 2013 14:20:40 +0800 Subject: [PATCH] Fix build failure: call to dlog API Change-Id: Icdf0e8e402eeba9c05dffb28de9048934a044602 Signed-off-by: Chengwei Yang --- backend-lib/src/librpminternals.c | 6 +++--- common/rpm-installer-util.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/backend-lib/src/librpminternals.c b/backend-lib/src/librpminternals.c index 4525c46..1da7caf 100755 --- a/backend-lib/src/librpminternals.c +++ b/backend-lib/src/librpminternals.c @@ -59,13 +59,13 @@ void _librpm_print_msg(int type, int exetype, char *format, ...) switch (type) { case DEBUG_ERR: - LOG(LOG_ERROR, LOCAL_LOG_TAG, tbuffer); + LOG(LOG_ERROR, LOCAL_LOG_TAG, "%s", tbuffer); break; case DEBUG_RESULT: - LOG(LOG_WARN, LOCAL_LOG_TAG, tbuffer); + LOG(LOG_WARN, LOCAL_LOG_TAG, "%s", tbuffer); break; case DEBUG_INFO: - LOG(LOG_DEBUG, LOCAL_LOG_TAG, tbuffer); + LOG(LOG_DEBUG, LOCAL_LOG_TAG, "%s", tbuffer); default: break; } diff --git a/common/rpm-installer-util.c b/common/rpm-installer-util.c index 0c5fd26..2e1e87e 100755 --- a/common/rpm-installer-util.c +++ b/common/rpm-installer-util.c @@ -135,13 +135,13 @@ void _print_msg(int type, int exetype, char *format, ...) switch (type) { case DEBUG_ERR: - LOG(LOG_ERROR, LOG_TAG, tbuffer); + LOG(LOG_ERROR, LOG_TAG, "%s", tbuffer); break; case DEBUG_RESULT: - LOG(LOG_WARN, LOG_TAG, tbuffer); + LOG(LOG_WARN, LOG_TAG, "%s", tbuffer); break; case DEBUG_INFO: - LOG(LOG_DEBUG, LOG_TAG, tbuffer); + LOG(LOG_DEBUG, LOG_TAG, "%s", tbuffer); default: break; } -- 2.7.4