From: Chengwei Yang Date: Tue, 17 Sep 2013 06:20:40 +0000 (+0800) Subject: Fix build failure: call to dlog API X-Git-Tag: accepted/tizen/20130923.205944^0 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fbase%2Frpm-installer.git;a=commitdiff_plain;h=2b6afc3c88377200511c2dbed81b5b134fc7c81d;ds=sidebyside Fix build failure: call to dlog API Change-Id: Icdf0e8e402eeba9c05dffb28de9048934a044602 Signed-off-by: Chengwei Yang --- 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; }