Fix a couple of printf format errors that bite on FreeBSD 10 for i386.
Since time_t might be an int, it can't be printed with a long format.
Since time_t might be a long in general, cast to it to long when
printing.
Change-Id: Iecc4487adee7a64542dd2dc17f94485a6198e707
Reviewed-on: http://gerrit.openafs.org/11385
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
printf("vol=%" AFS_VOLID_FMT " vn=%u cbs=%d hi=%d st=%d fest=%d, exp in %lu secs at %s",
afs_printable_VolumeId_lu(fe->volid), fe->vnode, fe->ncbs,
- cb->hhead, cb->status, fe->status, expires - now, ctime(&expires));
+ cb->hhead, cb->status, fe->status, (unsigned long)(expires - now),
+ ctime(&expires));
}
#endif
code = RXAFS_GetTime(cstruct->conns[0], (afs_uint32 *)&tv.tv_sec, (afs_uint32 *)&tv.tv_usec);
if (!code)
- printf("AFS_GetTime on %s sec=%ld, usec=%ld\n", av[0], tv.tv_sec,
- (long int)tv.tv_usec);
+ printf("AFS_GetTime on %s sec=%ld, usec=%ld\n", av[0], (long)tv.tv_sec,
+ (long)tv.tv_usec);
else
printf("return code is %d\n", code);