summaryrefslogtreecommitdiffstats
path: root/sys/dev/mlx
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2002-03-18 23:38:16 +0000
committerbde <bde@FreeBSD.org>2002-03-18 23:38:16 +0000
commit38c95fe42ac40c0a020f706e016889587d3c2c54 (patch)
tree9e6984d2e76a1b575c4d7e21812c7c713e80e976 /sys/dev/mlx
parentaa322cf19aba2ec086aacc131d3d321664c00ecf (diff)
downloadFreeBSD-src-38c95fe42ac40c0a020f706e016889587d3c2c54.zip
FreeBSD-src-38c95fe42ac40c0a020f706e016889587d3c2c54.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. "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.
Diffstat (limited to 'sys/dev/mlx')
-rw-r--r--sys/dev/mlx/mlx.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/mlx/mlx.c b/sys/dev/mlx/mlx.c
index fe2e92a..aecd9dc 100644
--- a/sys/dev/mlx/mlx.c
+++ b/sys/dev/mlx/mlx.c
@@ -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,
OpenPOWER on IntegriCloud