diff options
author | jhb <jhb@FreeBSD.org> | 2002-04-15 21:04:32 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-04-15 21:04:32 +0000 |
commit | f656d44b0b672058ce379f85203db2219ac0e32a (patch) | |
tree | 8cb08d2bdb70755b0384610beba4f39ece34c29d /sys | |
parent | cb08e4ed366c91432f24babc437094fa26f67c21 (diff) | |
download | FreeBSD-src-f656d44b0b672058ce379f85203db2219ac0e32a.zip FreeBSD-src-f656d44b0b672058ce379f85203db2219ac0e32a.tar.gz |
You have to cast int64_t's to long long if you printf them with %lld.
This now compiles on alpha without a warning.
Pointy-hat to: phk
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_ntptime.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_ntptime.c b/sys/kern/kern_ntptime.c index d8218db..63497ce 100644 --- a/sys/kern/kern_ntptime.c +++ b/sys/kern/kern_ntptime.c @@ -921,7 +921,7 @@ adjtime(struct thread *td, struct adjtime_args *uap) atv.tv_sec--; } printf("Old: time_adjtime = %ld.%06ld %lld\n", - atv.tv_sec, atv.tv_usec, time_adjtime); + atv.tv_sec, atv.tv_usec, (long long)time_adjtime); error = copyout(&atv, uap->olddelta, sizeof(atv)); if (error) goto done2; @@ -932,7 +932,7 @@ adjtime(struct thread *td, struct adjtime_args *uap) goto done2; time_adjtime = (int64_t)atv.tv_sec * 1000000 + atv.tv_usec; printf("New: time_adjtime = %ld.%06ld %lld\n", - atv.tv_sec, atv.tv_usec, time_adjtime); + atv.tv_sec, atv.tv_usec, (long long)time_adjtime); } done2: mtx_unlock(&Giant); |