]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Startup banner now notes when debug assertions are in force
authorHarlan Stenn <stenn@ntp.org>
Sun, 7 May 2023 07:10:38 +0000 (02:10 -0500)
committerHarlan Stenn <stenn@ntp.org>
Sun, 7 May 2023 07:10:38 +0000 (02:10 -0500)
bk: 64574eee3QXLqYzBjx0YQhxCGB0H9Q

ChangeLog
ntpd/ntpd.c

index 5ce1c0ad7d19cf05f4c92fd7411dd2a6bfef19de..3ea4f22d3ccc1d1cae5a7775cb98cae2fbcc63f2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -77,6 +77,8 @@
              Integrated patch from Brian Utterback. <hart@ntp.org>
 * [Bug 2525] Turn on automake subdir-objects across the project. <hart@ntp.org>
 * [Bug 2410] syslog an error message on panic exceeded. <brian.utterback@oracle.com>
+* If DEBUG is enabled, the startup banner now says that debug assertions
+  are in force and that ntpd will abort if any are violated. <stenn@ntp.org>
 * syslog valid incoming KoDs.  <stenn@ntp.org>
 * Rename a poorly-named variable.  <stenn@ntp.org>
 * Disable "embedded NUL in string" messages in libopts, when we can. <stenn@>
index efb98f4d39c4e346e2452b7071a14429c80a480c..f05924de7842d0cfd9a806e633693bce7cd6d0af 100644 (file)
@@ -914,6 +914,10 @@ ntpdmain(
        msyslog(LOG_NOTICE, "corporation.  Support and training for ntp-4 are");
        msyslog(LOG_NOTICE, "available at https://www.nwtime.org/support");
        msyslog(LOG_NOTICE, "----------------------------------------------------");
+#ifdef DEBUG
+       msyslog(LOG_NOTICE, "DEBUG behavior is enabled - a violation of any");
+       msyslog(LOG_NOTICE, "diagnostic assertion will cause %s to abort", progname);
+#endif
 
        /*
         * Install trap handlers to log errors and assertion failures.