diff options
author | mjacob <mjacob@FreeBSD.org> | 1999-07-06 01:40:03 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 1999-07-06 01:40:03 +0000 |
commit | 14d7c61e551e53a36546654bc000ec233e65f467 (patch) | |
tree | b0ac6ca305c523b51e20328fdf451e6ba2c83e2c /sys/cam | |
parent | 85059d8401fb4b5884aeabcb41f3119ef495a878 (diff) | |
download | FreeBSD-src-14d7c61e551e53a36546654bc000ec233e65f467.zip FreeBSD-src-14d7c61e551e53a36546654bc000ec233e65f467.tar.gz |
suggestions from bde to clean up last checkin slighty
Diffstat (limited to 'sys/cam')
-rw-r--r-- | sys/cam/scsi/scsi_da.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c index 3369109..abdc31a 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.27 1999/05/31 11:24:02 phk Exp $ + * $Id: scsi_da.c,v 1.28 1999/07/03 21:14:45 mjacob Exp $ */ #include "opt_hw_wdog.h" @@ -281,7 +281,7 @@ daopen(dev_t dev, int flags, int fmt, struct proc *p) softc = (struct da_softc *)periph->softc; CAM_DEBUG(periph->path, CAM_DEBUG_TRACE, - ("daopen: dev=0x%x (unit %d , partition %d)\n", dev, + ("daopen: dev=0x%lx (unit %d , partition %d)\n", (long) dev, unit, part)); if ((error = cam_periph_lock(periph, PRIBIO|PCATCH)) != 0) { @@ -1311,8 +1311,8 @@ 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) * - ((unsigned long) dp->sectors)) >> 20ul, + ((unsigned long)dp->secsize * dp->sectors) / + ((unsigned long)1024 * 1024), dp->sectors, dp->secsize, dp->heads, dp->secs_per_track, dp->cylinders); } else { |