svn commit: r247269 - head/sbin/fsck_ffs
Tim Kientzle
kientzle at FreeBSD.org
Mon Feb 25 16:25:39 UTC 2013
Author: kientzle
Date: Mon Feb 25 16:25:38 2013
New Revision: 247269
URL: http://svnweb.freebsd.org/changeset/base/247269
Log:
Fix ARM build by assigning the computed time here to
a variable of the right type for printf.
Modified:
head/sbin/fsck_ffs/fsutil.c
Modified: head/sbin/fsck_ffs/fsutil.c
==============================================================================
--- head/sbin/fsck_ffs/fsutil.c Mon Feb 25 16:22:40 2013 (r247268)
+++ head/sbin/fsck_ffs/fsutil.c Mon Feb 25 16:25:38 2013 (r247269)
@@ -448,8 +448,8 @@ static void printIOstats(void)
clock_gettime(CLOCK_REALTIME_PRECISE, &finishpass);
timespecsub(&finishpass, &startpass);
- printf("Running time: %ld msec\n",
- finishpass.tv_sec * 1000 + finishpass.tv_nsec / 1000000);
+ msec = finishpass.tv_sec * 1000 + finishpass.tv_nsec / 1000000;
+ printf("Running time: %lld msec\n", msec);
printf("buffer reads by type:\n");
for (totalmsec = 0, i = 0; i < BT_NUMBUFTYPES; i++)
totalmsec += readtime[i].tv_sec * 1000 +
More information about the svn-src-all
mailing list