[PATCH v4 07/37] unwind: introduce unwind.c own debug macro

Dmitry V. Levin ldv at altlinux.org
Thu Apr 17 01:12:16 UTC 2014


On Wed, Apr 16, 2014 at 03:33:05PM +0900, Masatake YAMATO wrote:
> Introduce unwind.c own debug macro to be utilized
> in debugging the code of cache management.
> 
> Signed-off-by: Masatake YAMATO <yamato at redhat.com>
> ---
>  unwind.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/unwind.c b/unwind.c
> index ecb7aa0..bd30fc2 100644
> --- a/unwind.c
> +++ b/unwind.c
> @@ -28,6 +28,8 @@
>  #include <limits.h>
>  #include <libunwind-ptrace.h>
>  
> +#define DPRINTF(F, A, ...) if (debug_flag) fprintf(stderr, " [unwind(" A ")] " F "\n", __VA_ARGS__);

Trailing semicolon in macro definition is dangerous,
please avoid it in the future.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20140417/a42a880b/attachment.bin>


More information about the Strace-devel mailing list