diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2008-04-12 21:51:54 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2008-04-12 21:51:54 +0000 |
| commit | 8d24f82310cbbb3331adc745b475a95a917a212c (patch) | |
| tree | bccb7a85798d30de704c57d36a497eb4d25c4c1e /sys/kern/subr_clock.c | |
| parent | 294643529963c2690c135c52942ce79c189e05dd (diff) | |
Notes
Diffstat (limited to 'sys/kern/subr_clock.c')
| -rw-r--r-- | sys/kern/subr_clock.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/subr_clock.c b/sys/kern/subr_clock.c index ce9a128cde97..e8a847e2236d 100644 --- a/sys/kern/subr_clock.c +++ b/sys/kern/subr_clock.c @@ -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"); } |
