]> www.infradead.org Git - users/dhowells/kafs-client.git/commitdiff
Fix verbose() func in kafs-preload
authorDavid Howells <dhowells@redhat.com>
Tue, 22 Jan 2019 10:39:02 +0000 (10:39 +0000)
committerDavid Howells <dhowells@redhat.com>
Tue, 22 Jan 2019 10:39:02 +0000 (10:39 +0000)
When kafs-preload's verbose() function was made to support syslog, the
original vprintf was left in and thus duplicated.  However, the va pointer
has been advanced and so this SEGV's.

Fixes: f058d9bb7b22 ("Use syslog in kafs-preload program")
Signed-off-by: David Howells <dhowells@redhat.com>
src/preload-cells.c

index ab308e37780f6ba755e25c63ab3e7ad37d39ddd9..c387fc3548a6141d4f9fe944928f2785af9849e2 100644 (file)
@@ -41,8 +41,6 @@ static void verbose(const char *fmt, ...)
        } else {
                vsyslog(LOG_INFO, fmt, va);
        }
-       vprintf(fmt, va);
-       putchar('\n');
        va_end(va);
 }