Re: [libvirt] PATCH: Remove qemudLog() macro, use logging.h instead

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Daniel P. Berrange wrote:
> The qemudLog() macro just spews its messages to stderr. This patch changes
> it to use the proper logging.h APIs, so the output channel is configurable
> in the expected way.

Looks good.

Considering the preceding comment, and since you didn't mention
this sole WARN->ERROR change, I wonder if it was deliberate:

> diff --git a/src/qemu_conf.c b/src/qemu_conf.c
...
>      /* Check & log unexpected exit status, but don't fail,
>       * as there's really no need to throw an error if we did
>       * actually read a valid version number above */
>      if (WEXITSTATUS(status) != 0) {
> -        qemudLog(QEMUD_WARN,
> -                 _("Unexpected exit status '%d', qemu probably failed"),
> -                 WEXITSTATUS(status));
> +        VIR_ERROR(_("Unexpected exit status '%d', qemu probably failed"),
> +                  WEXITSTATUS(status));
>      }
>
>      return ret;

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]