diff options
author | bde <bde@FreeBSD.org> | 1998-07-11 07:46:16 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-07-11 07:46:16 +0000 |
commit | f0b863f4b5c8604ff238621b7fcd6becea496675 (patch) | |
tree | 204ad88277d5159445cec0b7fbc88090454d53eb /sys/kern/subr_diskslice.c | |
parent | 065e3edb4989d6adb56bfc42cab8726f680cef5b (diff) | |
download | FreeBSD-src-f0b863f4b5c8604ff238621b7fcd6becea496675.zip FreeBSD-src-f0b863f4b5c8604ff238621b7fcd6becea496675.tar.gz |
Fixed printf format errors.
Diffstat (limited to 'sys/kern/subr_diskslice.c')
-rw-r--r-- | sys/kern/subr_diskslice.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/kern/subr_diskslice.c b/sys/kern/subr_diskslice.c index 9cb7ee2..db12d1d 100644 --- a/sys/kern/subr_diskslice.c +++ b/sys/kern/subr_diskslice.c @@ -46,7 +46,7 @@ * from: wd.c,v 1.55 1994/10/22 01:57:12 phk Exp $ * from: @(#)ufs_disksubr.c 7.16 (Berkeley) 5/4/91 * from: ufs_disksubr.c,v 1.8 1994/06/07 01:21:39 phk Exp $ - * $Id: subr_diskslice.c,v 1.46 1998/06/06 03:06:55 bde Exp $ + * $Id: subr_diskslice.c,v 1.47 1998/07/04 22:30:22 julian Exp $ */ #include "opt_devfs.h" @@ -146,8 +146,8 @@ if (labelsect != 0) Debugger("labelsect != 0 in dscheck()"); newblkno = transbad144(sp->ds_bad, blkno); if (newblkno != blkno) - printf("should map bad block %lu -> %lu\n", - blkno, newblkno); + printf("should map bad block %ld -> %ld\n", + (long)blkno, (long)newblkno); } } @@ -958,7 +958,8 @@ partition_info(sname, part, pp) struct partition *pp; { printf("%s%c: start %lu, end %lu, size %lu\n", sname, 'a' + part, - pp->p_offset, pp->p_offset + pp->p_size - 1, pp->p_size); + (u_long)pp->p_offset, (u_long)(pp->p_offset + pp->p_size - 1), + (u_long)pp->p_size); } static void |