diff options
author | phk <phk@FreeBSD.org> | 2003-04-30 13:36:51 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-04-30 13:36:51 +0000 |
commit | 7a4c9eae2ed9416c9c848f1f44a8aa02b7e6da7f (patch) | |
tree | b03aadb98cc6f86096955eb5b5c9aa99c9316a60 /sys/cam | |
parent | 6cc289554b8533c3a4ccee449df82dd25964011a (diff) | |
download | FreeBSD-src-7a4c9eae2ed9416c9c848f1f44a8aa02b7e6da7f.zip FreeBSD-src-7a4c9eae2ed9416c9c848f1f44a8aa02b7e6da7f.tar.gz |
Use %j instead of %q in printf to unbreak sparc64.
Diffstat (limited to 'sys/cam')
-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 c8f930f..d372881 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 { |