diff --git a/doc/management.txt b/doc/management.txt index 96bd30c3d..36b196ff9 100644 --- a/doc/management.txt +++ b/doc/management.txt @@ -271,6 +271,9 @@ list of options is : ./haproxy -W -q -c -dL -f foo.cfg | tar -T - -hzcf archive.tgz + When started in verbose mode (-V) the shared libraries' address ranges are + also enumerated, unless the quiet mode is in use (-q). + -dM[[,]][help|options,...] : forces memory poisoning, and/or changes memory other debugging options. Memory poisonning means that each and every memory region allocated with malloc() or pool_alloc() will be filled with diff --git a/src/haproxy.c b/src/haproxy.c index 3def1ed98..852e51402 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -2310,7 +2310,7 @@ static void init(int argc, char **argv) if (global.mode & MODE_DUMP_LIBS) { qfprintf(stdout, "List of loaded object files:\n"); chunk_reset(&trash); - if (dump_libs(&trash, 0)) + if (dump_libs(&trash, ((arg_mode & (MODE_QUIET|MODE_VERBOSE)) == MODE_VERBOSE))) printf("%s", trash.area); } #endif