From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Mon, 22 Mar 2021 20:56:28 +0000 (+0000) Subject: define a DEBUG_LEVEL and set it to zero X-Git-Tag: 1.1-dev~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68f2357f3722565cedd278b84ef00c63ea3c9a4f;p=thirdparty%2Fnqptp.git define a DEBUG_LEVEL and set it to zero --- diff --git a/nqptp.c b/nqptp.c index b86f702..8aea072 100644 --- 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);