From: Thierry FOURNIER Date: Thu, 20 Mar 2014 10:45:47 +0000 (+0100) Subject: MINOR: cli: remove information about acl or map owner. X-Git-Tag: v1.5-dev23~73 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f7e04e9c2fd7c0d199cd01e8763b5010ee1132c9;p=thirdparty%2Fhaproxy.git MINOR: cli: remove information about acl or map owner. The string contain all the owners of the displayed pattern. The message " - also used by an ACL/map" is useless. --- diff --git a/src/dumpstats.c b/src/dumpstats.c index 6a4de8c915..d20682ee8e 100644 --- a/src/dumpstats.c +++ b/src/dumpstats.c @@ -4885,20 +4885,10 @@ static int stats_pats_list(struct stream_interface *si) /* Build messages. If the reference is used by another category than * the listed categorie, display the information in the massage. */ - chunk_appendf(&trash, "%d (%s) %s", appctx->ctx.map.ref->unique_id, + chunk_appendf(&trash, "%d (%s) %s\n", appctx->ctx.map.ref->unique_id, appctx->ctx.map.ref->reference ? appctx->ctx.map.ref->reference : "", appctx->ctx.map.ref->display); - if (appctx->ctx.map.display_flags & PAT_REF_MAP) { - if (appctx->ctx.map.ref->flags & PAT_REF_ACL) - chunk_appendf(&trash, " - also used by an ACL"); - } - else { - if (appctx->ctx.map.ref->flags & PAT_REF_MAP) - chunk_appendf(&trash, " - also used by a map"); - } - chunk_appendf(&trash, "\n"); - if (bi_putchk(si->ib, &trash) == -1) { /* let's try again later from this session. We add ourselves into * this session's users so that it can remove us upon termination.