From 205c9d4c3078cec494ff602a5e4f4575d034c49d Mon Sep 17 00:00:00 2001 From: Alfred Perlstein Date: Tue, 19 Mar 2002 20:46:30 +0000 Subject: [PATCH] fix blockno printf formatting warnings. --- sys/contrib/dev/fla/fla.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sys/contrib/dev/fla/fla.c b/sys/contrib/dev/fla/fla.c index 72982440eb57..6de957263119 100644 --- a/sys/contrib/dev/fla/fla.c +++ b/sys/contrib/dev/fla/fla.c @@ -181,8 +181,9 @@ flastrategy(struct bio *bp) enum doc2k_work what; if (fla_debug > 1) - printf("flastrategy(%p) %s %x, %d, %ld, %p)\n", - bp, devtoname(bp->bio_dev), bp->bio_flags, bp->bio_blkno, + printf("flastrategy(%p) %s %x, %lld, %ld, %p)\n", + bp, devtoname(bp->bio_dev), bp->bio_flags, + (long long)bp->bio_blkno, bp->bio_bcount / DEV_BSIZE, bp->bio_data); sc = bp->bio_dev->si_drv1; @@ -225,8 +226,9 @@ flastrategy(struct bio *bp) ENTER(); if (fla_debug > 1 || error) { - printf("fla%d: %d = rwe(%p, %d, %d, %d, %ld, %p)\n", - unit, error, bp, unit, what, bp->bio_pblkno, + printf("fla%d: %d = rwe(%p, %d, %d, %lld, %ld, %p)\n", + unit, error, bp, unit, what, + (long long)bp->bio_pblkno, bp->bio_bcount / DEV_BSIZE, bp->bio_data); } if (error) {