CONTRIB: debug: add the possibility to decode the value as certain types only
authorWilly Tarreau <w@1wt.eu>
Thu, 6 Feb 2020 07:33:08 +0000 (08:33 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 6 Feb 2020 09:12:48 +0000 (10:12 +0100)
commit531fccc5301987c4ce4235d3c812912edf1db291
tree50f5823eaa597130f7119ed9b511a43972dfc503
parent4d295b261b62930c4b7b470887dddd9c6f40a09a
CONTRIB: debug: add the possibility to decode the value as certain types only

It's often confusing to have a whole dump on the screen while only
checking for a set of task or stream flags, and appending "|grep ^chn"
isn't very convenient to repeat the opeation. Instead let's add the
ability to filter the output as certain types only by prepending their
name(s) before the value.

(cherry picked from commit 354b6f5e288f466aed48d46dd8467b023a0b3660)
Signed-off-by: Willy Tarreau <w@1wt.eu>
contrib/debug/flags.c