mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Include filename explicitly in logging APIs
Currently the logging APIs have a 'const char *category' parameter which indicates where the log message comes from. This is typically a combination of the __FILE__ string and other prefix. Split the __FILE__ off into a dedicated parameter so it can passed to the log outputs Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
@@ -482,8 +482,9 @@ static struct virtTestLogData testLog = { VIR_BUFFER_INITIALIZER };
|
||||
static void
|
||||
virtTestLogOutput(const char *category ATTRIBUTE_UNUSED,
|
||||
virLogPriority priority ATTRIBUTE_UNUSED,
|
||||
const char *filename ATTRIBUTE_UNUSED,
|
||||
int lineno ATTRIBUTE_UNUSED,
|
||||
const char *funcname ATTRIBUTE_UNUSED,
|
||||
int linenr ATTRIBUTE_UNUSED,
|
||||
const char *timestamp,
|
||||
unsigned int flags,
|
||||
const char *rawstr ATTRIBUTE_UNUSED,
|
||||
|
||||
Reference in New Issue
Block a user