diff options
author | Jaehyun Kim <jeik01.kim@samsung.com> | 2022-05-12 16:59:13 +0900 |
---|---|---|
committer | Jaehyun Kim <jeik01.kim@samsung.com> | 2022-05-12 16:59:13 +0900 |
commit | 7cfaae611f1ae388414cdb22bcb9eb60ba40ab11 (patch) | |
tree | 74d18ae53615d5323ac7c17a4e978c03b7b38fd9 | |
parent | 1f41c88371335035afdb5c2905cea1d06b7214a9 (diff) | |
download | connman-7cfaae611f1ae388414cdb22bcb9eb60ba40ab11.tar.gz connman-7cfaae611f1ae388414cdb22bcb9eb60ba40ab11.tar.bz2 connman-7cfaae611f1ae388414cdb22bcb9eb60ba40ab11.zip |
Reinitialize the va_list when reusing itsubmit/tizen/20220517.032302accepted/tizen/unified/20220524.050402
Change-Id: I4ae7c752c09f328cba522b25f8acb05e80425cef
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
-rwxr-xr-x | src/log.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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); |