diff options
author | marcel <marcel@FreeBSD.org> | 2002-10-12 23:00:40 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2002-10-12 23:00:40 +0000 |
commit | c751d92ae7a3fee5813ed014bcbebf5006bc33a6 (patch) | |
tree | 48ad96da26e1bdeb4e10d7bc9d13039a8c62ac17 | |
parent | f02cbfb108461966a77140624dd77bd89c9a1351 (diff) | |
download | FreeBSD-src-c751d92ae7a3fee5813ed014bcbebf5006bc33a6.zip FreeBSD-src-c751d92ae7a3fee5813ed014bcbebf5006bc33a6.tar.gz |
o Fix typo in previous commit: s/sc-nsect/sc->nsect/
o Fix printf format error for %d format with long argument.
-rw-r--r-- | sys/ia64/ia64/sscdisk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ia64/ia64/sscdisk.c b/sys/ia64/ia64/sscdisk.c index cf54eb3..1755300 100644 --- a/sys/ia64/ia64/sscdisk.c +++ b/sys/ia64/ia64/sscdisk.c @@ -133,7 +133,7 @@ sscopen(dev_t dev, int flag, int fmt, struct thread *td) sc = dev->si_drv1; sc->disk.d_sectorsize = DEV_BSIZE; - sc->disk.d_mediasize = (off_t)sc-nsect * DEV_BSIZE; + sc->disk.d_mediasize = (off_t)sc->nsect * DEV_BSIZE; sc->disk.d_fwsectors = 0; sc->disk.d_fwheads = 0; return (0); @@ -162,7 +162,7 @@ sscstrategy(struct bio *bp) u_long len, va, off; if (ssc_debug > 1) - printf("sscstrategy(%p) %s %x, %d, %ld, %p)\n", + printf("sscstrategy(%p) %s %x, %ld, %ld, %p)\n", bp, devtoname(bp->bio_dev), bp->bio_flags, bp->bio_blkno, bp->bio_bcount / DEV_BSIZE, bp->bio_data); |