diff options
author | Stefan Fritsch <sf@cvs.openbsd.org> | 2013-10-01 20:15:58 +0000 |
---|---|---|
committer | Stefan Fritsch <sf@cvs.openbsd.org> | 2013-10-01 20:15:58 +0000 |
commit | 78fed2d74d047c4635326003573ee6d659bea5ef (patch) | |
tree | abcd91760773729dc240de0d7cd94333d83f3317 /sys/kern/vfs_subr.c | |
parent | 8adfe2babdf95fd0defba54986764479c69bbd69 (diff) |
Format string fixes: Cast time_t to long long
and mnt_stat.f_ctime is long long, too
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r-- | sys/kern/vfs_subr.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 58066786c4d..147138c357d 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_subr.c,v 1.206 2013/08/08 23:25:06 syl Exp $ */ +/* $OpenBSD: vfs_subr.c,v 1.207 2013/10/01 20:15:56 sf Exp $ */ /* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */ /* @@ -2161,10 +2161,11 @@ vfs_buf_print(void *b, int full, bp->b_vp, (int64_t)bp->b_lblkno, (int64_t)bp->b_blkno, bp->b_dev, bp->b_proc, bp->b_error, bp->b_flags, B_BITS); - (*pr)(" bufsize 0x%lx bcount 0x%lx resid 0x%lx sync 0x%x\n" + (*pr)(" bufsize 0x%lx bcount 0x%lx resid 0x%lx sync 0x%llx\n" " data %p saveaddr %p dep %p iodone %p\n", - bp->b_bufsize, bp->b_bcount, (long)bp->b_resid, bp->b_synctime, - bp->b_data, bp->b_saveaddr, LIST_FIRST(&bp->b_dep), bp->b_iodone); + bp->b_bufsize, bp->b_bcount, (long)bp->b_resid, + (long long)bp->b_synctime, bp->b_data, bp->b_saveaddr, + LIST_FIRST(&bp->b_dep), bp->b_iodone); (*pr)(" dirty {off 0x%x end 0x%x} valid {off 0x%x end 0x%x}\n", bp->b_dirtyoff, bp->b_dirtyend, bp->b_validoff, bp->b_validend); @@ -2235,7 +2236,7 @@ vfs_mount_print(struct mount *mp, int full, (*pr)(" files %llu ffiles %llu favail %lld\n", mp->mnt_stat.f_files, mp->mnt_stat.f_ffree, mp->mnt_stat.f_favail); - (*pr)(" f_fsidx {0x%x, 0x%x} owner %u ctime 0x%x\n", + (*pr)(" f_fsidx {0x%x, 0x%x} owner %u ctime 0x%llx\n", mp->mnt_stat.f_fsid.val[0], mp->mnt_stat.f_fsid.val[1], mp->mnt_stat.f_owner, mp->mnt_stat.f_ctime); |