diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-04-30 13:36:51 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-04-30 13:36:51 +0000 |
| commit | 2c50682195b096c4717dbdd5b19b187f1447eb5e (patch) | |
| tree | b03aadb98cc6f86096955eb5b5c9aa99c9316a60 /sys | |
| parent | 51da11a27a5288bc4f23fc923004a7fada6a5690 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/cam/scsi/scsi_da.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c index c8f930f68539..d37288150a80 100644 --- a/sys/cam/scsi/scsi_da.c +++ b/sys/cam/scsi/scsi_da.c @@ -1558,9 +1558,10 @@ dadone(struct cam_periph *periph, union ccb *done_ccb) dasetgeom(periph, block_size, maxsector); dp = &softc->params; snprintf(announce_buf, sizeof(announce_buf), - "%quMB (%qu %u byte sectors: %dH %dS/T %dC)", - (uint64_t) (((u_int64_t)dp->secsize * - dp->sectors) / (1024*1024)), dp->sectors, + "%juMB (%ju %u byte sectors: %dH %dS/T %dC)", + (uintmax_t) (((uintmax_t)dp->secsize * + dp->sectors) / (1024*1024)), + (uintmax_t)dp->sectors, dp->secsize, dp->heads, dp->secs_per_track, dp->cylinders); } else { |
