mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
s/int/virLogPriority/ in logging code
The log priority levels are an enum, but most of the code was just using a plain 'int' for function params / variables. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
@@ -481,7 +481,7 @@ static struct virtTestLogData testLog = { VIR_BUFFER_INITIALIZER };
|
||||
|
||||
static void
|
||||
virtTestLogOutput(const char *category ATTRIBUTE_UNUSED,
|
||||
int priority ATTRIBUTE_UNUSED,
|
||||
virLogPriority priority ATTRIBUTE_UNUSED,
|
||||
const char *funcname ATTRIBUTE_UNUSED,
|
||||
long long lineno ATTRIBUTE_UNUSED,
|
||||
const char *timestamp,
|
||||
@@ -610,7 +610,7 @@ int virtTestMain(int argc,
|
||||
virLogSetFromEnv();
|
||||
if (!getenv("LIBVIRT_DEBUG") && !virLogGetNbOutputs()) {
|
||||
if (virLogDefineOutput(virtTestLogOutput, virtTestLogClose, &testLog,
|
||||
0, 0, NULL, 0) < 0)
|
||||
VIR_LOG_DEBUG, 0, NULL, 0) < 0)
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user