diff options
author | bde <bde@FreeBSD.org> | 2002-03-18 23:24:00 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2002-03-18 23:24:00 +0000 |
commit | ffc925e36bb3305026b6b62c662cef4574c3afcc (patch) | |
tree | e8e844f5af1b4d7196a8b1870b1e92cfd02649d5 /sys/dev | |
parent | 7b3b08fd9f5f9084394958d1ed1ce5b331dacffe (diff) | |
download | FreeBSD-src-ffc925e36bb3305026b6b62c662cef4574c3afcc.zip FreeBSD-src-ffc925e36bb3305026b6b62c662cef4574c3afcc.tar.gz |
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.
Diffstat (limited to 'sys/dev')
-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 a8fbd4f..ff8c472 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) { |