Do not assume that time_t is an int.
Approved by: re (jhb)
This commit is contained in:
parent
70285c3e5f
commit
cdf5e9ccb6
@ -353,7 +353,7 @@ inittodr(base)
|
||||
deltat = -deltat;
|
||||
if (deltat < 2 * SECDAY)
|
||||
return;
|
||||
printf("WARNING: clock %s %d days",
|
||||
printf("WARNING: clock %s %ld days",
|
||||
ts.tv_sec < base ? "lost" : "gained", deltat / SECDAY);
|
||||
}
|
||||
bad:
|
||||
|
@ -500,8 +500,8 @@ out1:
|
||||
if (collectsnapstats && starttime.tv_sec > 0) {
|
||||
nanotime(&endtime);
|
||||
timespecsub(&endtime, &starttime);
|
||||
printf("%s: suspended %d.%03ld sec, redo %ld of %d\n",
|
||||
vp->v_mount->mnt_stat.f_mntonname, endtime.tv_sec,
|
||||
printf("%s: suspended %ld.%03ld sec, redo %ld of %d\n",
|
||||
vp->v_mount->mnt_stat.f_mntonname, (long)endtime.tv_sec,
|
||||
endtime.tv_nsec / 1000000, redo, fs->fs_ncg);
|
||||
}
|
||||
if (sbp == NULL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user