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.

"Fixed" format printf error in previous commit.  This file is not
formatted in KNF.  Partially restore bug for bug compatibility: indent
the printf args too much, but don't format them for 160-column terminals.
This commit is contained in:
Bruce Evans 2002-03-18 23:38:16 +00:00
parent 3b67680b63
commit 07e929da1c

View File

@ -1777,8 +1777,10 @@ mlx_startio(struct mlx_softc *sc)
blkcount = (MLX_BIO_LENGTH(bp) + MLX_BLKSIZE - 1) / MLX_BLKSIZE;
if ((MLX_BIO_LBA(bp) + blkcount) > sc->mlx_sysdrive[driveno].ms_size)
device_printf(sc->mlx_dev, "I/O beyond end of unit (%llu,%d > %u)\n",
MLX_BIO_LBA(bp), blkcount, sc->mlx_sysdrive[driveno].ms_size);
device_printf(sc->mlx_dev,
"I/O beyond end of unit (%lld,%d > %lu)\n",
(long long)MLX_BIO_LBA(bp), blkcount,
(u_long)sc->mlx_sysdrive[driveno].ms_size);
/*
* Build the I/O command. Note that the SG list type bits are set to zero,