core: log whether assertions are enabled for the build

This commit is contained in:
Thomas Haller 2020-12-11 18:40:53 +01:00
parent 344247cdc1
commit 0a730fe0ea
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -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",