]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DEV: flags: remove the now unused SHOW_FLAG() definition
authorWilly Tarreau <w@1wt.eu>
Fri, 9 Sep 2022 14:36:37 +0000 (16:36 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Sep 2022 14:52:09 +0000 (16:52 +0200)
All dump functions were converted, no need to use this macro anymore.

dev/flags/flags.c

index 9c6a71bab05117661ec2c63a5c97a52e6151ebcf..3fd1b4b31d4f2bd7865f63f862ba704f162955ce 100644 (file)
 // so that show_as_words[i] matches flag 1U<<i.
 const char *show_as_words[] = { "ana", "chn", "conn", "sc", "stet", "strm", "task", "txn", "sd", };
 
-#define SHOW_FLAG(f,n)                                 \
-       do {                                            \
-               if (!((f) & (n))) break;                \
-               (f) &= ~(n);                            \
-               printf(#n"%s", (f) ? " | " : "");       \
-       } while (0)
-
 /* will be sufficient for even largest flag names */
 static char tmpbuf[4096];