diff options
author | Bruce Evans <bde@FreeBSD.org> | 2002-03-18 23:24:00 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 2002-03-18 23:24:00 +0000 |
commit | 1b7fb13116cdf9c2f3004f03371448d50b6578ae (patch) | |
tree | e8e844f5af1b4d7196a8b1870b1e92cfd02649d5 /sys/dev/amr | |
parent | 832185530724be971c28f3fb120eddc20cc6b518 (diff) | |
download | src-1b7fb13116cdf9c2f3004f03371448d50b6578ae.tar.gz src-1b7fb13116cdf9c2f3004f03371448d50b6578ae.zip |
Fixed printf format errors in previous commit. %llu is no more suitable
than %u for printing signed 64-bit types. It fails on different machines,
and has the wrong signdness.
Fixed old printf format error on the same line. %u is not suitable for
printing 32-bit types on all machines.
Notes
Notes:
svn path=/head/; revision=92610
Diffstat (limited to 'sys/dev/amr')
-rw-r--r-- | sys/dev/amr/amr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/amr/amr.c b/sys/dev/amr/amr.c index a8fbd4fde4af..ff8c47290c3b 100644 --- a/sys/dev/amr/amr.c +++ b/sys/dev/amr/amr.c @@ -813,8 +813,9 @@ amr_bio_command(struct amr_softc *sc, struct amr_command **acp) /* we fill in the s/g related data when the command is mapped */ if ((bio->bio_pblkno + blkcount) > sc->amr_drive[driveno].al_size) - device_printf(sc->amr_dev, "I/O beyond end of unit (%llu,%d > %u)\n", - bio->bio_pblkno, blkcount, sc->amr_drive[driveno].al_size); + device_printf(sc->amr_dev, "I/O beyond end of unit (%lld,%d > %lu)\n", + (long long)bio->bio_pblkno, blkcount, + (u_long)sc->amr_drive[driveno].al_size); out: if (error != 0) { |