summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaehyun Kim <jeik01.kim@samsung.com>2022-05-12 16:59:13 +0900
committerJaehyun Kim <jeik01.kim@samsung.com>2022-05-12 16:59:13 +0900
commit7cfaae611f1ae388414cdb22bcb9eb60ba40ab11 (patch)
tree74d18ae53615d5323ac7c17a4e978c03b7b38fd9
parent1f41c88371335035afdb5c2905cea1d06b7214a9 (diff)
downloadconnman-7cfaae611f1ae388414cdb22bcb9eb60ba40ab11.tar.gz
connman-7cfaae611f1ae388414cdb22bcb9eb60ba40ab11.tar.bz2
connman-7cfaae611f1ae388414cdb22bcb9eb60ba40ab11.zip
Change-Id: I4ae7c752c09f328cba522b25f8acb05e80425cef Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
-rwxr-xr-xsrc/log.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/log.c b/src/log.c
index 7a4839bf..e821f54e 100755
--- a/src/log.c
+++ b/src/log.c
@@ -199,6 +199,9 @@ void __connman_log_s(int log_priority, const char *format, ...)
if (dlog_logging)
dlog_vprint(DLOG_DEBUG, LOG_TAG, format, ap);
+ va_end(ap);
+ va_start(ap, format);
+
if (file_logging)
vsyslog(LOG_DEBUG, format, ap);
@@ -225,6 +228,9 @@ void connman_info(const char *format, ...)
if (dlog_logging)
dlog_vprint(DLOG_INFO, LOG_TAG, format, ap);
+ va_end(ap);
+ va_start(ap, format);
+
if (file_logging)
#endif
vsyslog(LOG_INFO, format, ap);
@@ -248,6 +254,9 @@ void connman_warn(const char *format, ...)
if (dlog_logging)
dlog_vprint(DLOG_WARN, LOG_TAG, format, ap);
+ va_end(ap);
+ va_start(ap, format);
+
if (file_logging)
#endif
vsyslog(LOG_WARNING, format, ap);
@@ -271,6 +280,9 @@ void connman_error(const char *format, ...)
if (dlog_logging)
dlog_vprint(DLOG_ERROR, LOG_TAG, format, ap);
+ va_end(ap);
+ va_start(ap, format);
+
if (file_logging)
#endif
vsyslog(LOG_ERR, format, ap);
@@ -294,6 +306,9 @@ void connman_debug(const char *format, ...)
if (dlog_logging)
dlog_vprint(DLOG_DEBUG, LOG_TAG, format, ap);
+ va_end(ap);
+ va_start(ap, format);
+
if (file_logging)
#endif
vsyslog(LOG_DEBUG, format, ap);