Skip to content

Commit 203191c

Browse files
Christian Rieschdavem330
authored andcommitted
ptp: Fix compiler warnings in the testptp utility
Signed-off-by: Christian Riesch <christian.riesch@omicron.at> Cc: Dong Zhu <bluezhudong@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 271c83d commit 203191c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Documentation/ptp/testptp.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -496,14 +496,14 @@ int main(int argc, char *argv[])
496496
interval = t2 - t1;
497497
offset = (t2 + t1) / 2 - tp;
498498

499-
printf("system time: %ld.%ld\n",
499+
printf("system time: %lld.%u\n",
500500
(pct+2*i)->sec, (pct+2*i)->nsec);
501-
printf("phc time: %ld.%ld\n",
501+
printf("phc time: %lld.%u\n",
502502
(pct+2*i+1)->sec, (pct+2*i+1)->nsec);
503-
printf("system time: %ld.%ld\n",
503+
printf("system time: %lld.%u\n",
504504
(pct+2*i+2)->sec, (pct+2*i+2)->nsec);
505-
printf("system/phc clock time offset is %ld ns\n"
506-
"system clock time delay is %ld ns\n",
505+
printf("system/phc clock time offset is %lld ns\n"
506+
"system clock time delay is %lld ns\n",
507507
offset, interval);
508508
}
509509

0 commit comments

Comments
 (0)