diff options
author | gibbs <gibbs@FreeBSD.org> | 1998-09-17 00:08:29 +0000 |
---|---|---|
committer | gibbs <gibbs@FreeBSD.org> | 1998-09-17 00:08:29 +0000 |
commit | e0db131ba028922d0f48f643f31bda5630ef9d89 (patch) | |
tree | caff1d9d374a08d69896be4fcbfbc5a08906783e /sys/i386/eisa | |
parent | 7394d510b4f6733a7cd4f6483f101b0466cb0bf0 (diff) | |
download | FreeBSD-src-e0db131ba028922d0f48f643f31bda5630ef9d89.zip FreeBSD-src-e0db131ba028922d0f48f643f31bda5630ef9d89.tar.gz |
Use %p with (void *) casts to print pointers with printf.
Diffstat (limited to 'sys/i386/eisa')
-rw-r--r-- | sys/i386/eisa/ahb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/i386/eisa/ahb.c b/sys/i386/eisa/ahb.c index 45a0cf8..c253bea 100644 --- a/sys/i386/eisa/ahb.c +++ b/sys/i386/eisa/ahb.c @@ -25,7 +25,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ahb.c,v 1.1 1998/09/15 07:10:00 gibbs Exp $ + * $Id: ahb.c,v 1.2 1998/09/16 03:27:07 gibbs Exp $ */ #include "eisa.h" @@ -1259,14 +1259,14 @@ ahbtimeout(void *arg) ccb = ecb->ccb; ahb = (struct ahb_softc *)ccb->ccb_h.ccb_ahb_ptr; xpt_print_path(ccb->ccb_h.path); - printf("ECB 0x%x - timed out\n", (intptr_t)ecb); + printf("ECB %p - timed out\n", (void *)ecb); s = splcam(); if ((ecb->state & ECB_ACTIVE) == 0) { xpt_print_path(ccb->ccb_h.path); - printf("ECB 0x%x - timed out ECB already completed\n", - (intptr_t)ecb); + printf("ECB %p - timed out ECB already completed\n", + (void *)ecb); splx(s); return; } |