[libvirt] [PATCH 03/30] Replace printf with logging macros

Eric Blake eblake at redhat.com
Mon Apr 5 16:11:50 UTC 2010


On 04/04/2010 11:36 AM, Matthias Bolte wrote:
> ---
>  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 4bf445d..0174794 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");

ACK, although this may need modification depending on the answer to my
question on 01/30 on why logging messages don't need translation.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 323 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100405/ef72885f/attachment-0001.sig>


More information about the libvir-list mailing list