mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
Replace printf with logging macros
This commit is contained in:
parent
39f3fee4a4
commit
051df19e0e
@ -836,7 +836,7 @@ static int halDeviceMonitorReload(void)
|
||||
dbus_error_init(&err);
|
||||
udi = libhal_get_all_devices(hal_ctx, &num_devs, &err);
|
||||
if (udi == NULL) {
|
||||
fprintf(stderr, "%s: libhal_get_all_devices failed\n", __FUNCTION__);
|
||||
VIR_ERROR0("libhal_get_all_devices failed");
|
||||
return -1;
|
||||
}
|
||||
for (i = 0; i < num_devs; i++) {
|
||||
|
@ -2103,9 +2103,9 @@ ebiptablesDisplayRuleInstance(virConnectPtr conn ATTRIBUTE_UNUSED,
|
||||
void *_inst)
|
||||
{
|
||||
ebiptablesRuleInstPtr inst = (ebiptablesRuleInstPtr)_inst;
|
||||
printf("Command Template: %s\nNeeded protocol: %s\n\n",
|
||||
inst->commandTemplate,
|
||||
virNWFilterChainSuffixTypeToString(inst->neededProtocolChain));
|
||||
VIR_INFO("Command Template: '%s', Needed protocol: '%s'",
|
||||
inst->commandTemplate,
|
||||
virNWFilterChainSuffixTypeToString(inst->neededProtocolChain));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user