From: Ján Tomko Date: Thu, 13 Feb 2020 23:12:24 +0000 (+0100) Subject: util: virlog: unexport virLogVMessage X-Git-Tag: v6.7.0-rc1~222 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59ab98c11264853a7f40fe989673744f9465cd5d;p=thirdparty%2Flibvirt.git util: virlog: unexport virLogVMessage Last usage out of virlog.c was removed by commit 91268c715cf0293f0751de0450e4d0c06bea18d8 node_device_udev: remove deprecated logging function Also drop the virbuffer.h include - it seems it was never used for anything else than the transitive stdarg.h include. Signed-off-by: Ján Tomko Reviewed-by: Martin Kletzander --- diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms index b726b0c071..bb65aa1cdc 100644 --- a/src/libvirt_private.syms +++ b/src/libvirt_private.syms @@ -2475,7 +2475,6 @@ virLogSetFilters; virLogSetFromEnv; virLogSetOutputs; virLogUnlock; -virLogVMessage; # util/virmacaddr.h diff --git a/src/util/virlog.c b/src/util/virlog.c index 983c2565ad..322f9599f6 100644 --- a/src/util/virlog.c +++ b/src/util/virlog.c @@ -493,7 +493,8 @@ virLogSourceUpdate(virLogSourcePtr source) * Call the libvirt logger with some information. Based on the configuration * the message may be stored, sent to output or just discarded */ -void +static void +G_GNUC_PRINTF(7, 0) virLogVMessage(virLogSourcePtr source, virLogPriority priority, const char *filename, diff --git a/src/util/virlog.h b/src/util/virlog.h index 37870e514c..984a9d5a43 100644 --- a/src/util/virlog.h +++ b/src/util/virlog.h @@ -22,7 +22,6 @@ #pragma once #include "internal.h" -#include "virbuffer.h" #ifdef PACKAGER_VERSION # ifdef PACKAGER @@ -178,14 +177,6 @@ void virLogMessage(virLogSourcePtr source, const char *funcname, virLogMetadataPtr metadata, const char *fmt, ...) G_GNUC_PRINTF(7, 8); -void virLogVMessage(virLogSourcePtr source, - virLogPriority priority, - const char *filename, - int linenr, - const char *funcname, - virLogMetadataPtr metadata, - const char *fmt, - va_list vargs) G_GNUC_PRINTF(7, 0); bool virLogProbablyLogMessage(const char *str); virLogOutputPtr virLogOutputNew(virLogOutputFunc f,