qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 01/14] dma: Convert conditional compilation of d


From: Michael Tokarev
Subject: Re: [Qemu-devel] [PATCH 01/14] dma: Convert conditional compilation of debug printfs to regular ifs
Date: Mon, 28 Apr 2014 13:17:43 +0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.4.0

28.04.2014 12:26, Marc Marí wrote:
[]
> +#define linfo(...) \
> +    do { \
> +        if(DEBUG_DMA) { \
> +            fprintf(stderr, "dma: " __VA_ARGS__); \
> +        } \
> +    } while (0)
> +    
> +#define ldebug(...) \
> +    do { \
> +        if(DEBUG_DMA) { \
> +            fprintf(stderr, "dma: " __VA_ARGS__); \
> +        } \
> +    } while (0)
> +

#define ldebug linfo

 :)

I wonder why they used diff. levels but the same condition.

/mjt



reply via email to

[Prev in Thread] Current Thread [Next in Thread]