Re: [libvirt PATCH] tests: add warning that qemucapsprobe prefers native host/guest arch

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

 



On Tue, 2021-04-06 at 12:01 +0100, Daniel P. Berrangé wrote:
> +++ b/tests/qemucapsprobe.c
> @@ -46,6 +46,7 @@ main(int argc, char **argv)
>  {
>      virThread thread;
>      virQEMUCapsPtr caps;
> +    virArch guest, host;

I believe it's preferred to declare each variable on its own line,
even though this preference is not spelled out in our coding style.

> +    if (host != guest)
> +        fprintf(stderr,
> +                "WARNING: guest architecture '%s' does not match host '%s'.\n"
> +                "WARNING: When generating capabilities for the libvirt test\n"
> +                "WARNING: suite, it is strongly desired to generate capabilities\n"
> +                "WARNING: on the native host to capture KVM related features.\n",
> +                virArchToString(guest), virArchToString(host));

Braces around this, please.


Reviewed-by: Andrea Bolognani <abologna@xxxxxxxxxx>

-- 
Andrea Bolognani / Red Hat / Virtualization




[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]

  Powered by Linux