aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/autofs/autounmountd.c
diff options
context:
space:
mode:
authorJustin Hibbits <jhibbits@FreeBSD.org>2019-08-09 02:20:26 +0000
committerJustin Hibbits <jhibbits@FreeBSD.org>2019-08-09 02:20:26 +0000
commit3447ea90d74b5cedc84ae2eb4d74cfe16e966017 (patch)
tree881c88b3c09e395cecb4600cd2fac846408d28d7 /usr.sbin/autofs/autounmountd.c
parent162022d77d245bedae3f9b166a2e27772e1d592e (diff)
downloadsrc-3447ea90d74b5cedc84ae2eb4d74cfe16e966017.tar.gz
src-3447ea90d74b5cedc84ae2eb4d74cfe16e966017.zip
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
Notes
Notes: svn path=/head/; revision=350814
Diffstat (limited to 'usr.sbin/autofs/autounmountd.c')
-rw-r--r--usr.sbin/autofs/autounmountd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/autofs/autounmountd.c b/usr.sbin/autofs/autounmountd.c
index 6f1c0b856f98..25c29e739380 100644
--- a/usr.sbin/autofs/autounmountd.c
+++ b/usr.sbin/autofs/autounmountd.c
@@ -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;