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

Re: [Xen-devel] [PATCH] libxl: Cleanup, use LOG*, GCSPRINTF and CTX macros in libxl_device.c



On 5 November 2013 15:56, Ian Campbell <Ian.Campbell@xxxxxxxxxx> wrote:
> On Tue, 2013-11-05 at 11:48 +0000, George Dunlap wrote:
>> >   bad_format:
>> > -    LIBXL__LOG(ctx, LIBXL__LOG_DEBUG, "Disk vdev=%s, backend %s"
>> > -               " unsuitable due to format %s",
>> > -               a->disk->vdev,
>> > -               libxl_disk_backend_to_string(backend),
>> > -               libxl_disk_format_to_string(a->disk->format));
>> > +    LOG(DEBUG, "Disk vdev=%s, backend %s unsuitable due to format %s",
>> > +        a->disk->vdev,
>> > +        libxl_disk_backend_to_string(backend),
>> > +        libxl_disk_format_to_string(a->disk->format));
>>
>> Given that in existing places, the LOG macro has formatted variables
>> aligned to the beginning of the quote rather than to the open paren,
>
> There's a bit of a mixture and the indented version is more prevalent.
> But there's only 7 multiline uses of LOG* in that file (the split is 5:2
> in favour of indentation).
>
> I'd object to just reindenting but if the line is changing anyway I have
> no strong feelings on the style used.
>
> The non-indented variant does have the benefit that formatting helpers
> (e.g. emacs' c-mode) do it that way for you...
>
> Ian.
>
>

Hi guys,

Thanks for the review. I will update the patch based on your suggestions:
* fix indentation stuff
* break lines up to 80 characters when necessary
* change commit message with:

Use new LOG* and GCSPRINTF macros in libxl_device.c

Replace libxl__sprintf, LIBXL__LOG and LIBXL__LOG_ERRNO with new
"Convenience macros": GCSPRINTF, LOG, LOGE


Thanks,
Alexandra

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.