fix printf type confusion on amd64
This commit is contained in:
parent
2946435299
commit
8d24f82310
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=178164
@ -179,7 +179,7 @@ clock_ct_to_ts(struct clocktime *ct, struct timespec *ts)
|
||||
ts->tv_sec = secs;
|
||||
ts->tv_nsec = ct->nsec;
|
||||
if (ct_debug)
|
||||
printf(" = %d.%09ld\n", ts->tv_sec, (long)ts->tv_nsec);
|
||||
printf(" = %ld.%09ld\n", (long)ts->tv_sec, (long)ts->tv_nsec);
|
||||
return (0);
|
||||
}
|
||||
|
||||
@ -217,7 +217,8 @@ clock_ts_to_ct(struct timespec *ts, struct clocktime *ct)
|
||||
ct->sec = rsec;
|
||||
ct->nsec = ts->tv_nsec;
|
||||
if (ct_debug) {
|
||||
printf("ts_to_ct(%d.%09ld) = ", ts->tv_sec, (long)ts->tv_nsec);
|
||||
printf("ts_to_ct(%ld.%09ld) = ",
|
||||
(long)ts->tv_sec, (long)ts->tv_nsec);
|
||||
print_ct(ct);
|
||||
printf("\n");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user