[libvirt] [PATCH v2 04/20] virlog: Introduce virLogFindOutput

John Ferlan jferlan at redhat.com
Wed Sep 21 18:23:01 UTC 2016



[...]

doh!  Like a good fluorescent lightbulb - it just dawned on me...


> +
> +    for (i = 0; i < noutputs; i++) {
> +        if (dest == outputs[i]->dest &&
> +            (dest != VIR_LOG_TO_FILE || STREQ(outputs[i]->name, name)))

STREQ_NULLABLE would I believe remove the need for the VIR_LOG_TO_FILE
check...

John
> +                return i;
> +    }
> +
> +    return -1;
> +}
[...]




More information about the libvir-list mailing list