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.
This commit is contained in:
Bruce Evans 2002-03-18 23:24:00 +00:00
parent 8321855307
commit 1b7fb13116
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=92610

View file

@ -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) {