autofs: Fix autounmountd's printing of mount time.

time_t should be printed as intmax_t.  Even though duration should be short, the
correct way to print is intmax_t, not long.

Reported by:	ian,imp
This commit is contained in:
Justin Hibbits 2019-08-09 02:20:26 +00:00
parent 162022d77d
commit 3447ea90d7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=350814

View File

@ -196,9 +196,9 @@ expire_automounted(time_t expiration_time)
if (mounted_for < expiration_time) {
log_debugx("skipping %s (FSID:%d:%d), mounted "
"for %ld seconds", af->af_mountpoint,
"for %jd seconds", af->af_mountpoint,
af->af_fsid.val[0], af->af_fsid.val[1],
(long)mounted_for);
(intmax_t)mounted_for);
if (mounted_for > mounted_max)
mounted_max = mounted_for;