@@ -335,9 +335,12 @@ static void hc_ntp_request (const ntpHeaderV3 *head,
335
335
hc_broadcast_reply ((char * )& ntpResponse , sizeof (ntpResponse ), source );
336
336
337
337
if (hc_debug_enabled ())
338
- printf ("Response to %s: origin=%u/%08x, reference=%u/%08x, "
339
- "receive=%u/%08x, transmit=%u/%08x dispersion=%dms\n" ,
338
+ printf ("Response to %s at %d.%0.03d: "
339
+ "origin=%u/%08x, reference=%u/%08x, "
340
+ "receive=%u/%08x, transmit=%u/%08x dispersion=%dms\n" ,
340
341
hc_broadcast_format (source ),
342
+ (long )(transmit .tv_sec ),
343
+ (int )(transmit .tv_usec / 1000 ),
341
344
ntohl (ntpResponse .origin .seconds ),
342
345
ntohl (ntpResponse .origin .fraction ),
343
346
ntohl (ntpResponse .reference .seconds ),
@@ -420,10 +423,12 @@ void hc_ntp_periodic (const struct timeval *wakeup) {
420
423
hc_ntp_status_db -> live .broadcast += 1 ;
421
424
422
425
if (hc_debug_enabled ())
423
- printf ("Sent broadcast packet at %ld.%03.3d "
424
- "( dispersion=%dms) \n" ,
426
+ printf ("Sent broadcast packet at %ld.%03.3d: "
427
+ "transmit=%u/%08x, dispersion=%dms\n" ,
425
428
(long )(timestamp .tv_sec ),
426
429
(int )(timestamp .tv_usec / 1000 ),
430
+ ntohl (ntpBroadcast .transmit .seconds ),
431
+ ntohl (ntpBroadcast .transmit .fraction ),
427
432
dispersion );
428
433
}
429
434
hc_ntp_status_db -> mode = 'S' ;
0 commit comments