Skip to content

Commit 59ab98c

Browse files
committed
util: virlog: unexport virLogVMessage
Last usage out of virlog.c was removed by commit 91268c7 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 <[email protected]> Reviewed-by: Martin Kletzander <[email protected]>
1 parent 35eca23 commit 59ab98c

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

src/libvirt_private.syms

-1
Original file line numberDiff line numberDiff line change
@@ -2475,7 +2475,6 @@ virLogSetFilters;
24752475
virLogSetFromEnv;
24762476
virLogSetOutputs;
24772477
virLogUnlock;
2478-
virLogVMessage;
24792478

24802479

24812480
# util/virmacaddr.h

src/util/virlog.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,8 @@ virLogSourceUpdate(virLogSourcePtr source)
493493
* Call the libvirt logger with some information. Based on the configuration
494494
* the message may be stored, sent to output or just discarded
495495
*/
496-
void
496+
static void
497+
G_GNUC_PRINTF(7, 0)
497498
virLogVMessage(virLogSourcePtr source,
498499
virLogPriority priority,
499500
const char *filename,

src/util/virlog.h

-9
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#pragma once
2323

2424
#include "internal.h"
25-
#include "virbuffer.h"
2625

2726
#ifdef PACKAGER_VERSION
2827
# ifdef PACKAGER
@@ -178,14 +177,6 @@ void virLogMessage(virLogSourcePtr source,
178177
const char *funcname,
179178
virLogMetadataPtr metadata,
180179
const char *fmt, ...) G_GNUC_PRINTF(7, 8);
181-
void virLogVMessage(virLogSourcePtr source,
182-
virLogPriority priority,
183-
const char *filename,
184-
int linenr,
185-
const char *funcname,
186-
virLogMetadataPtr metadata,
187-
const char *fmt,
188-
va_list vargs) G_GNUC_PRINTF(7, 0);
189180

190181
bool virLogProbablyLogMessage(const char *str);
191182
virLogOutputPtr virLogOutputNew(virLogOutputFunc f,

0 commit comments

Comments
 (0)