diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-01-29 11:29:22 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-01-29 11:29:22 +0000 |
| commit | 60ca3996531cef221f62db2823cf48aa7e67737c (patch) | |
| tree | 96535f7d70e9000f66a44f3658200b49db882ffd /sys/kern/kern_tc.c | |
| parent | c152df28e55f873d109a9fea03481a4af5741bcc (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_tc.c')
| -rw-r--r-- | sys/kern/kern_tc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/kern/kern_tc.c b/sys/kern/kern_tc.c index 93b50a028298..44d8986bca18 100644 --- a/sys/kern/kern_tc.c +++ b/sys/kern/kern_tc.c @@ -12,6 +12,7 @@ #include "opt_ntp.h" #include <sys/param.h> +#include <sys/stdint.h> #include <sys/kernel.h> #include <sys/sysctl.h> #include <sys/systm.h> @@ -282,8 +283,8 @@ tc_init(struct timecounter *tc) { unsigned u; - printf("Timecounter \"%s\" frequency %lu Hz", - tc->tc_name, (u_long)tc->tc_frequency); + printf("Timecounter \"%s\" frequency %ju Hz", + tc->tc_name, (intmax_t)tc->tc_frequency); u = tc->tc_frequency / tc->tc_counter_mask; if (u > hz) { @@ -299,7 +300,7 @@ tc_init(struct timecounter *tc) } /* Report the frequency of the current timecounter. */ -u_int32_t +u_int64_t tc_getfrequency(void) { |
