From c8f081e5e8a06b8989587da508af383fb555614c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Tvrd=C3=ADk?= Date: Tue, 1 Sep 2015 08:54:59 +0200 Subject: [PATCH] Birdtest: Fixing macro ARGip4(x) for non-debugging environment --- test/bt-utils.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/bt-utils.h b/test/bt-utils.h index 6bdcede7..4717b191 100644 --- a/test/bt-utils.h +++ b/test/bt-utils.h @@ -12,7 +12,11 @@ #include "sysdep/config.h" #define PRIip4 "%d.%d.%d.%d" -#define ARGip4(x) ((x).addr >> 24) & 0xff, ((x).addr >> 16) & 0xff, ((x).addr >> 8) & 0xff, (x).addr & 0xff +#ifdef DEBUGGING +# define ARGip4(x) ((x).addr >> 24) & 0xff, ((x).addr >> 16) & 0xff, ((x).addr >> 8) & 0xff, (x).addr & 0xff +#else +# define ARGip4(x) ((x) >> 24) & 0xff, ((x) >> 16) & 0xff, ((x) >> 8) & 0xff, (x) & 0xff +#endif #define PRIip6 "%04X:%04X:%04X:%04X:%04X:%04X:%04X:%04X" #define ARGip6_HIGH(x,i) (((x).addr[(i)] >> 16) & 0xffff) #define ARGip6_LOW(x,i) ((x).addr[(i)] & 0xffff)