From 0a730fe0eacbbc442ec13fb4e1924f40a9093844 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 11 Dec 2020 18:40:53 +0100 Subject: [PATCH] core: log whether assertions are enabled for the build --- src/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 467a1bedc7..dc7dcaf60b 100644 --- a/src/main.c +++ b/src/main.c @@ -426,8 +426,9 @@ main(int argc, char *argv[]) } nm_log_info(LOGD_CORE, - "NetworkManager (version " NM_DIST_VERSION ") is starting... (%s)", - nm_config_get_first_start(config) ? "for the first time" : "after a restart"); + "NetworkManager (version " NM_DIST_VERSION ") is starting... (%s%s)", + nm_config_get_first_start(config) ? "for the first time" : "after a restart", + NM_MORE_ASSERTS != 0 ? ", asserts:" G_STRINGIFY(NM_MORE_ASSERTS) : ""); nm_log_info(LOGD_CORE, "Read config: %s",