]> git.ipfire.org Git - thirdparty/nqptp.git/commitdiff
define a DEBUG_LEVEL and set it to zero
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Mon, 22 Mar 2021 20:56:28 +0000 (20:56 +0000)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Mon, 22 Mar 2021 20:56:28 +0000 (20:56 +0000)
nqptp.c

diff --git a/nqptp.c b/nqptp.c
index b86f702ce55a0feb457ef8b0ed19dccb211ace19..8aea0726e310373818c33862c953544f33ac424b 100644 (file)
--- a/nqptp.c
+++ b/nqptp.c
@@ -67,6 +67,8 @@
 #define SIOCSHWTSTAMP 0x89b0
 #endif
 
+#define DEBUG_LEVEL 0
+
 // References from the IEEE Document ISBN 978-0-7381-5400-8 STD95773.
 // "IEEE Standard for a Precision Clock Synchronization Protocol for Networked Measurement and
 // Control Systems" The IEEE Std 1588-2008 (Revision of IEEE Std 1588-2002)
@@ -328,7 +330,7 @@ void termHandler(__attribute__((unused)) int k) {
 
 int main(void) {
   // level 0 is no messages, level 3 is most messages -- see debug.h
-  debug_init(1, 0, 1, 1);
+  debug_init(DEBUG_LEVEL, 0, 1, 1);
   debug(1, "startup");
   atexit(goodbye);