Date: Fri, 9 Aug 2019 02:20:26 +0000 (UTC) From: Justin Hibbits <jhibbits@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r350814 - head/usr.sbin/autofs Message-ID: <201908090220.x792KQw2089448@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhibbits Date: Fri Aug 9 02:20:26 2019 New Revision: 350814 URL: https://svnweb.freebsd.org/changeset/base/350814 Log: 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 Modified: head/usr.sbin/autofs/autounmountd.c Modified: head/usr.sbin/autofs/autounmountd.c ============================================================================== --- head/usr.sbin/autofs/autounmountd.c Fri Aug 9 02:11:47 2019 (r350813) +++ head/usr.sbin/autofs/autounmountd.c Fri Aug 9 02:20:26 2019 (r350814) @@ -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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908090220.x792KQw2089448>