From: Pavel TvrdĂ­k Date: Tue, 1 Sep 2015 06:54:59 +0000 (+0200) Subject: Birdtest: Fixing macro ARGip4(x) for non-debugging environment X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8f081e5e8a06b8989587da508af383fb555614c;p=thirdparty%2Fbird.git Birdtest: Fixing macro ARGip4(x) for non-debugging environment --- diff --git a/test/bt-utils.h b/test/bt-utils.h index 6bdcede7a..4717b1910 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)