diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2021-10-15 20:43:41 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2021-10-15 20:46:17 +0200 |
commit | a56721b61cd9b93094ff33b02364d4922fe934e2 (patch) | |
tree | cf6187c95f7d18b2f42fba1704d985f948e11212 /util.c | |
parent | 6943d41d6cd0f639ca725a03737bd848c5d4488a (diff) | |
download | passt-a56721b61cd9b93094ff33b02364d4922fe934e2.tar passt-a56721b61cd9b93094ff33b02364d4922fe934e2.tar.gz passt-a56721b61cd9b93094ff33b02364d4922fe934e2.tar.bz2 passt-a56721b61cd9b93094ff33b02364d4922fe934e2.tar.lz passt-a56721b61cd9b93094ff33b02364d4922fe934e2.tar.xz passt-a56721b61cd9b93094ff33b02364d4922fe934e2.tar.zst passt-a56721b61cd9b93094ff33b02364d4922fe934e2.zip |
util: Don't duplicate debug messages, they're already on stderr
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -54,12 +54,12 @@ void name(const char *format, ...) { \ fprintf(stderr, "%lu.%04lu: ", \ tp.tv_sec - log_debug_start, \ tp.tv_nsec / (100 * 1000)); \ + } else { \ + va_start(args, format); \ + __vsyslog(level, format, args); \ + va_end(args); \ } \ \ - va_start(args, format); \ - __vsyslog(level, format, args); \ - va_end(args); \ - \ if (setlogmask(0) & LOG_MASK(LOG_DEBUG) || \ setlogmask(0) == LOG_MASK(LOG_EMERG)) { \ va_start(args, format); \ |