hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/tools/testing/selftests/ptp/testptp.c
....@@ -492,11 +492,11 @@
492492 interval = t2 - t1;
493493 offset = (t2 + t1) / 2 - tp;
494494
495
- printf("system time: %lld.%u\n",
495
+ printf("system time: %lld.%09u\n",
496496 (pct+2*i)->sec, (pct+2*i)->nsec);
497
- printf("phc time: %lld.%u\n",
497
+ printf("phc time: %lld.%09u\n",
498498 (pct+2*i+1)->sec, (pct+2*i+1)->nsec);
499
- printf("system time: %lld.%u\n",
499
+ printf("system time: %lld.%09u\n",
500500 (pct+2*i+2)->sec, (pct+2*i+2)->nsec);
501501 printf("system/phc clock time offset is %" PRId64 " ns\n"
502502 "system clock time delay is %" PRId64 " ns\n",