]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: virlog: unexport virLogVMessage
authorJán Tomko <jtomko@redhat.com>
Thu, 13 Feb 2020 23:12:24 +0000 (00:12 +0100)
committerJán Tomko <jtomko@redhat.com>
Mon, 3 Aug 2020 13:30:40 +0000 (15:30 +0200)
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 <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/libvirt_private.syms
src/util/virlog.c
src/util/virlog.h

index b726b0c07163b63ad50a8926dd29987230c0b3e5..bb65aa1cdca2449e7b0edf71b9d8b3270639f23c 100644 (file)
@@ -2475,7 +2475,6 @@ virLogSetFilters;
 virLogSetFromEnv;
 virLogSetOutputs;
 virLogUnlock;
-virLogVMessage;
 
 
 # util/virmacaddr.h
index 983c2565adf86fc74ced209c6be5225e05f0636c..322f9599f695e200877d41bc02707b84493e5425 100644 (file)
@@ -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,
index 37870e514c7f7e38d87c7ff390420dc29e627800..984a9d5a43b891f3bd06f3d4a1c7c5aab6663590 100644 (file)
@@ -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,