@@ -609,7 +609,7 @@ bool ntpProcessOneRequest(bool process, const timeval *recTv, const timeval *syn
609609 if (ntpDiag != nullptr )
610610 {
611611 char tmpbuf[128 ];
612- snprintf (tmpbuf, sizeof (tmpbuf), " Originate Timestamp (Client Transmit): %u.%06u \r\n " ,
612+ snprintf (tmpbuf, sizeof (tmpbuf), " Originate Timestamp (Client Transmit): %lu.%06lu \r\n " ,
613613 packet.transmitTimestampSeconds ,
614614 packet.convertFractionToMicros (packet.transmitTimestampFraction ));
615615 strlcat (ntpDiag, tmpbuf, ntpDiagSize);
@@ -631,7 +631,7 @@ bool ntpProcessOneRequest(bool process, const timeval *recTv, const timeval *syn
631631 if (ntpDiag != nullptr )
632632 {
633633 char tmpbuf[128 ];
634- snprintf (tmpbuf, sizeof (tmpbuf), " Received Timestamp: %u.%06u \r\n " ,
634+ snprintf (tmpbuf, sizeof (tmpbuf), " Received Timestamp: %lu.%06lu \r\n " ,
635635 packet.receiveTimestampSeconds ,
636636 packet.convertFractionToMicros (packet.receiveTimestampFraction ));
637637 strlcat (ntpDiag, tmpbuf, ntpDiagSize);
@@ -649,7 +649,7 @@ bool ntpProcessOneRequest(bool process, const timeval *recTv, const timeval *syn
649649 if (ntpDiag != nullptr )
650650 {
651651 char tmpbuf[128 ];
652- snprintf (tmpbuf, sizeof (tmpbuf), " Reference Timestamp (Last Sync): %u.%06u \r\n " ,
652+ snprintf (tmpbuf, sizeof (tmpbuf), " Reference Timestamp (Last Sync): %lu.%06lu \r\n " ,
653653 packet.referenceTimestampSeconds ,
654654 packet.convertFractionToMicros (packet.referenceTimestampFraction ));
655655 strlcat (ntpDiag, tmpbuf, ntpDiagSize);
@@ -677,7 +677,7 @@ bool ntpProcessOneRequest(bool process, const timeval *recTv, const timeval *syn
677677 if (ntpDiag != nullptr )
678678 {
679679 char tmpbuf[128 ];
680- snprintf (tmpbuf, sizeof (tmpbuf), " Transmit Timestamp: %u.%06u \r\n " ,
680+ snprintf (tmpbuf, sizeof (tmpbuf), " Transmit Timestamp: %lu.%06lu \r\n " ,
681681 packet.transmitTimestampSeconds ,
682682 packet.convertFractionToMicros (packet.transmitTimestampFraction ));
683683 strlcat (ntpDiag, tmpbuf, ntpDiagSize);
0 commit comments