diff options
| author | chs <chs@NetBSD.org> | 2005-12-27 17:25:41 +0000 |
|---|---|---|
| committer | chs <chs@NetBSD.org> | 2005-12-27 17:25:41 +0000 |
| commit | 599510004a1e697b6415ff9d3631aa2fcd180c8a (patch) | |
| tree | cd3cb2827044a1cd95bbac3437fb94441ae93591 /sys/dev/ic | |
| parent | 89a8f7b8c933aa62d8eb5a4c4ab1cc994acb4353 (diff) | |
use %z when printing a sizeof.
Diffstat (limited to 'sys/dev/ic')
| -rw-r--r-- | sys/dev/ic/aac.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/ic/aac.c b/sys/dev/ic/aac.c index 76d7049794b..2cbb11804bc 100644 --- a/sys/dev/ic/aac.c +++ b/sys/dev/ic/aac.c @@ -1,4 +1,4 @@ -/* $NetBSD: aac.c,v 1.25 2005/11/26 21:33:46 jdolecek Exp $ */ +/* $NetBSD: aac.c,v 1.26 2005/12/27 17:25:41 chs Exp $ */ /*- * Copyright (c) 2002 The NetBSD Foundation, Inc. @@ -77,7 +77,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: aac.c,v 1.25 2005/11/26 21:33:46 jdolecek Exp $"); +__KERNEL_RCSID(0, "$NetBSD: aac.c,v 1.26 2005/12/27 17:25:41 chs Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -344,8 +344,8 @@ aac_describe_controller(struct aac_softc *sc) } if (bufsize != sizeof(*info)) { aprint_error("%s: " - "RequestAdapterInfo returned wrong data size (%d != %lu)\n", - sc->sc_dv.dv_xname, bufsize, (long unsigned) sizeof(*info)); + "RequestAdapterInfo returned wrong data size (%d != %zu)\n", + sc->sc_dv.dv_xname, bufsize, sizeof(*info)); return; } info = (struct aac_adapter_info *)&tbuf[0]; @@ -671,8 +671,8 @@ aac_startup(struct aac_softc *sc) } if (rsize != sizeof(mir)) { aprint_error("%s: container info response wrong size " - "(%d should be %lu)\n", - sc->sc_dv.dv_xname, rsize, (long unsigned) sizeof(mir)); + "(%d should be %zu)\n", + sc->sc_dv.dv_xname, rsize, sizeof(mir)); continue; } |
