summaryrefslogtreecommitdiffstats
path: root/lib/log.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-08-23 16:18:49 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2017-08-24 00:18:50 +0200
commit9eed278b163d2175ee714869085a54f2c3726cca (patch)
tree057333fac7216df3a989f1b9cc589ee40d6b1762 /lib/log.c
parentzebra: don't print 0.0.0.0:0 for FPM config (diff)
downloadfrr-9eed278b163d2175ee714869085a54f2c3726cca.tar.xz
frr-9eed278b163d2175ee714869085a54f2c3726cca.zip
lib: centralized memstats-at-exit
adds a new all-daemon "debug memstats-at-exit" command. Also saves memstats to a file in /tmp, useful if a long-running daemon is having weird issues (e.g. in a user install). Fixes: #437 Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/log.c')
-rw-r--r--lib/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/log.c b/lib/log.c
index 5c89e7080..5b2429b31 100644
--- a/lib/log.c
+++ b/lib/log.c
@@ -701,7 +701,7 @@ void _zlog_assert_failed(const char *assertion, const char *file,
assertion, file, line, (function ? function : "?"));
zlog_backtrace(LOG_CRIT);
zlog_thread_info(LOG_CRIT);
- log_memstats_stderr("log");
+ log_memstats(stderr, "log");
abort();
}