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;
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to