From: Harlan Stenn Date: Sun, 5 Aug 2012 09:03:59 +0000 (-0400) Subject: Fix && -> & typo in refclock_palisade.c debug statements X-Git-Tag: NTP_4_2_7P294~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c13935b2c5786df148a9f22c8133a1612a0e86a4;p=thirdparty%2Fntp.git Fix && -> & typo in refclock_palisade.c debug statements bk: 501e36ff7wefKWcr0uyhHa1X9i4NZw --- diff --git a/ChangeLog b/ChangeLog index f413cdc49..d81fcab4d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ +* Fix && -> & typo in refclock_palisade.c debug statements. (4.2.7p293) 2012/08/04 Released by Harlan Stenn * [Bug 2247] (more) Get rid of the TRAK refclock - deprecated since 2006. * Documentation cleanup from Mike T. diff --git a/ntpd/refclock_palisade.c b/ntpd/refclock_palisade.c index dfa45034b..8ce27c951 100644 --- a/ntpd/refclock_palisade.c +++ b/ntpd/refclock_palisade.c @@ -833,15 +833,15 @@ TSIP_decode ( up->polled = -1; #ifdef DEBUG if (debug > 1) { - if (mb(1) && 0x01) + if (mb(1) & 0x01) printf ("Signal Processor Error, reset unit.\n"); - if (mb(1) && 0x02) + if (mb(1) & 0x02) printf ("Alignment error, channel or chip 1, reset unit.\n"); - if (mb(1) && 0x03) + if (mb(1) & 0x03) printf ("Alignment error, channel or chip 2, reset unit.\n"); - if (mb(1) && 0x04) + if (mb(1) & 0x04) printf ("Antenna feed line fault (open or short)\n"); - if (mb(1) && 0x05) + if (mb(1) & 0x05) printf ("Excessive reference frequency error, refer to packet 0x2D and packet 0x4D documentation for further information\n"); } #endif