diff options
author | mjacob <mjacob@FreeBSD.org> | 1999-07-07 18:14:01 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 1999-07-07 18:14:01 +0000 |
commit | 0eb1413cb0e8ed162fb3d927f6620eebab584c0c (patch) | |
tree | 518fe1dd61f3b7586440c2fe266fd5ed404911e1 /sys/cam | |
parent | dde3bd678dd648c47f2136b10cbf07f754e3be4c (diff) | |
download | FreeBSD-src-0eb1413cb0e8ed162fb3d927f6620eebab584c0c.zip FreeBSD-src-0eb1413cb0e8ed162fb3d927f6620eebab584c0c.tar.gz |
Fix my complete botch. I hope. Tested this time
Diffstat (limited to 'sys/cam')
-rw-r--r-- | sys/cam/scsi/scsi_da.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c index abdc31a..630b946 100644 --- a/sys/cam/scsi/scsi_da.c +++ b/sys/cam/scsi/scsi_da.c @@ -25,7 +25,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: scsi_da.c,v 1.28 1999/07/03 21:14:45 mjacob Exp $ + * $Id: scsi_da.c,v 1.29 1999/07/06 01:40:03 mjacob Exp $ */ #include "opt_hw_wdog.h" @@ -1311,10 +1311,10 @@ dadone(struct cam_periph *periph, union ccb *done_ccb) dp = &softc->params; snprintf(announce_buf, sizeof(announce_buf), "%luMB (%u %u byte sectors: %dH %dS/T %dC)", - ((unsigned long)dp->secsize * dp->sectors) / - ((unsigned long)1024 * 1024), - dp->sectors, dp->secsize, dp->heads, - dp->secs_per_track, dp->cylinders); + (unsigned long) (((u_int64_t)dp->secsize * + dp->sectors) / (1024*1024)), dp->sectors, + dp->secsize, dp->heads, dp->secs_per_track, + dp->cylinders); } else { int error; |