diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2013-11-12 14:11:08 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2013-11-12 14:11:08 +0000 |
commit | 1c7f7af61b829c6c05786b31c499187bf703c183 (patch) | |
tree | 98d7895fa84241b83abe842c03c865038c52175b /sys | |
parent | bca8f23f423148199bdf6ea86b701651efcc31ca (diff) |
Use %llu+DL_GETPSIZE() to show partition size. Replace %li+(long) with
%u for u_int32_t d_secsize.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/vnd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/vnd.c b/sys/dev/vnd.c index bf92ff26d07..afc44763371 100644 --- a/sys/dev/vnd.c +++ b/sys/dev/vnd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vnd.c,v 1.151 2013/11/01 17:36:19 krw Exp $ */ +/* $OpenBSD: vnd.c,v 1.152 2013/11/12 14:11:07 krw Exp $ */ /* $NetBSD: vnd.c,v 1.26 1996/03/30 23:06:11 christos Exp $ */ /* @@ -383,9 +383,9 @@ vndbdevsize(struct vnode *vp, struct proc *p) return (0); if (bsw->d_ioctl(dev, DIOCGPART, (caddr_t)&pi, FREAD, p)) return (0); - DNPRINTF(VDB_INIT, "vndbdevsize: size %li secsize %li\n", - (long)pi.part->p_size,(long)pi.disklab->d_secsize); - return (pi.part->p_size); + DNPRINTF(VDB_INIT, "vndbdevsize: size %llu secsize %u\n", + DL_GETPSIZE(pi.part), pi.disklab->d_secsize); + return (DL_GETPSIZE(pi.part)); } /* ARGSUSED */ |