From 051df19e0e8bed8c0ad40704f176bd949bf23f72 Mon Sep 17 00:00:00 2001 From: Matthias Bolte Date: Fri, 2 Apr 2010 21:43:17 +0200 Subject: [PATCH] Replace printf with logging macros --- src/node_device/node_device_hal.c | 2 +- src/nwfilter/nwfilter_ebiptables_driver.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/node_device/node_device_hal.c b/src/node_device/node_device_hal.c index 4bf445dbc5..0174794513 100644 --- a/src/node_device/node_device_hal.c +++ b/src/node_device/node_device_hal.c @@ -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++) { diff --git a/src/nwfilter/nwfilter_ebiptables_driver.c b/src/nwfilter/nwfilter_ebiptables_driver.c index f6542d52dc..eef9e5245f 100644 --- a/src/nwfilter/nwfilter_ebiptables_driver.c +++ b/src/nwfilter/nwfilter_ebiptables_driver.c @@ -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; }