mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
util: log: move virLogMessage
This function calls virLogVMessage. Move it below the definition of virLogVMessage so it can call it even without a prototype. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
9a7953b864
commit
35eca23144
@ -478,37 +478,6 @@ virLogSourceUpdate(virLogSourcePtr source)
|
|||||||
virLogUnlock();
|
virLogUnlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* virLogMessage:
|
|
||||||
* @source: where is that message coming from
|
|
||||||
* @priority: the priority level
|
|
||||||
* @filename: file where the message was emitted
|
|
||||||
* @linenr: line where the message was emitted
|
|
||||||
* @funcname: the function emitting the (debug) message
|
|
||||||
* @metadata: NULL or metadata array, terminated by an item with NULL key
|
|
||||||
* @fmt: the string format
|
|
||||||
* @...: the arguments
|
|
||||||
*
|
|
||||||
* Call the libvirt logger with some information. Based on the configuration
|
|
||||||
* the message may be stored, sent to output or just discarded
|
|
||||||
*/
|
|
||||||
void
|
|
||||||
virLogMessage(virLogSourcePtr source,
|
|
||||||
virLogPriority priority,
|
|
||||||
const char *filename,
|
|
||||||
int linenr,
|
|
||||||
const char *funcname,
|
|
||||||
virLogMetadataPtr metadata,
|
|
||||||
const char *fmt, ...)
|
|
||||||
{
|
|
||||||
va_list ap;
|
|
||||||
va_start(ap, fmt);
|
|
||||||
virLogVMessage(source, priority,
|
|
||||||
filename, linenr, funcname,
|
|
||||||
metadata, fmt, ap);
|
|
||||||
va_end(ap);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* virLogVMessage:
|
* virLogVMessage:
|
||||||
@ -639,6 +608,38 @@ virLogVMessage(virLogSourcePtr source,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virLogMessage:
|
||||||
|
* @source: where is that message coming from
|
||||||
|
* @priority: the priority level
|
||||||
|
* @filename: file where the message was emitted
|
||||||
|
* @linenr: line where the message was emitted
|
||||||
|
* @funcname: the function emitting the (debug) message
|
||||||
|
* @metadata: NULL or metadata array, terminated by an item with NULL key
|
||||||
|
* @fmt: the string format
|
||||||
|
* @...: the arguments
|
||||||
|
*
|
||||||
|
* Call the libvirt logger with some information. Based on the configuration
|
||||||
|
* the message may be stored, sent to output or just discarded
|
||||||
|
*/
|
||||||
|
void
|
||||||
|
virLogMessage(virLogSourcePtr source,
|
||||||
|
virLogPriority priority,
|
||||||
|
const char *filename,
|
||||||
|
int linenr,
|
||||||
|
const char *funcname,
|
||||||
|
virLogMetadataPtr metadata,
|
||||||
|
const char *fmt, ...)
|
||||||
|
{
|
||||||
|
va_list ap;
|
||||||
|
va_start(ap, fmt);
|
||||||
|
virLogVMessage(source, priority,
|
||||||
|
filename, linenr, funcname,
|
||||||
|
metadata, fmt, ap);
|
||||||
|
va_end(ap);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
virLogOutputToFd(virLogSourcePtr source G_GNUC_UNUSED,
|
virLogOutputToFd(virLogSourcePtr source G_GNUC_UNUSED,
|
||||||
virLogPriority priority G_GNUC_UNUSED,
|
virLogPriority priority G_GNUC_UNUSED,
|
||||||
|
Loading…
Reference in New Issue
Block a user