Re: [libvirt] [PATCH] Fix more printf("%s", NULL) usage

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

 



john.levon@xxxxxxx wrote:
> diff --git a/src/libvirt.c b/src/libvirt.c
> --- a/src/libvirt.c
> +++ b/src/libvirt.c
> @@ -2871,7 +2871,9 @@ virDomainMigratePrepare (virConnectPtr d
>                             const char *dname,
>                             unsigned long bandwidth)
>  {
> -    DEBUG("dconn=%p, cookie=%p, cookielen=%p, uri_in=%s, uri_out=%p, flags=%lu, dname=%s, bandwidth=%lu", dconn, cookie, cookielen, uri_in, uri_out, flags, dname, bandwidth);
> +    VIR_DEBUG("dconn=%p, cookie=%p, cookielen=%p, uri_in=%s, uri_out=%p, "
> +        "flags=%lu, dname=%s, bandwidth=%lu", dconn, cookie, cookielen,
> +        NULLSTR(uri_in), uri_out, flags, NULLSTR(dname), bandwidth);
>
>      virResetLastError();

ACK.

Limited-width side-by-side comparators thank you for
splitting the long lines.

Thought note that we like continuation lines
to be aligned with the opening parenthesis, i.e.,

    VIR_DEBUG("dconn=%p, cookie=%p, cookielen=%p, uri_in=%s, uri_out=%p, "
              "flags=%lu, dname=%s, bandwidth=%lu", dconn, cookie, cookielen,
              NULLSTR(uri_in), uri_out, flags, NULLSTR(dname), bandwidth);

because that's what most automatic indenters do.

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