Re: [PATCH 5/9] Include filename explicitly in logging APIs

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

 



On 09/27/2012 01:39 PM, Eric Blake wrote:
> On 09/27/2012 10:44 AM, Daniel P. Berrange wrote:
>> From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
>>
>> Currently the logging APIs have a 'const char *category' parameter
>> which indicates where the log message comes from. This is typically
>> a combination of the __FILE__ string and other prefix. Split the
>> __FILE__ off into a dedicated parameter so it can passed to the
>> log outputs
>>

>> +    VIR_DEBUG_INT("trace", __FILE__ , __LINE__, __func__,    \
> 
> While you are touching this line, get rid of the space before comma.
> 

> ACK with this squashed in:
> 
> diff --git i/src/internal.h w/src/internal.h
> index 8037a4a..f8d9044 100644
> --- i/src/internal.h
> +++ w/src/internal.h
> @@ -349,10 +349,10 @@
> 
>  #  define PROBE_EXPAND(NAME, ARGS) NAME(ARGS)
>  #  define PROBE(NAME, FMT, ...)                              \
> -    VIR_DEBUG_INT("trace." __FILE__ , __func__, __LINE__,    \
> +    VIR_DEBUG_INT("trace." __FILE__, __func__, __LINE__,     \
>                    #NAME ": " FMT, __VA_ARGS__);              \
> -    if (LIBVIRT_ ## NAME ## _ENABLED()) {                   \

Phooey - I diffed against the wrong patch.  The intent was to fix just
the space before comma, or even to squash that fix into 4/9 (along with
the other whitespace fixes).

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

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