Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pcmcia add right casts to printf bus_space parameters



details:   https://anonhg.NetBSD.org/src/rev/039f325affcd
branches:  trunk
changeset: 481126:039f325affcd
user:      aymeric <aymeric%NetBSD.org@localhost>
date:      Sun Jan 23 20:44:04 2000 +0000

description:
add right casts to printf bus_space parameters

diffstat:

 sys/dev/pcmcia/pcmcia.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 035b1856c262 -r 039f325affcd sys/dev/pcmcia/pcmcia.c
--- a/sys/dev/pcmcia/pcmcia.c   Sun Jan 23 20:43:35 2000 +0000
+++ b/sys/dev/pcmcia/pcmcia.c   Sun Jan 23 20:44:04 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pcmcia.c,v 1.14 1999/10/15 06:07:31 haya Exp $ */
+/*     $NetBSD: pcmcia.c,v 1.15 2000/01/23 20:44:04 aymeric Exp $      */
 
 #define        PCMCIADEBUG
 
@@ -212,7 +212,8 @@
                        DPRINTF(("%s: function %d CCR at %d "
                             "offset %lx: %x %x %x %x, %x %x %x %x, %x\n",
                             sc->dev.dv_xname, pf->number,
-                            pf->pf_ccr_window, pf->pf_ccr_offset,
+                            pf->pf_ccr_window,
+                            (unsigned long) pf->pf_ccr_offset,
                             pcmcia_ccr_read(pf, 0x00),
                        pcmcia_ccr_read(pf, 0x02), pcmcia_ccr_read(pf, 0x04),
                        pcmcia_ccr_read(pf, 0x06), pcmcia_ccr_read(pf, 0x0A),
@@ -486,7 +487,8 @@
                        printf("%s: function %d CCR at %d offset %lx: "
                               "%x %x %x %x, %x %x %x %x, %x\n",
                               tmp->sc->dev.dv_xname, tmp->number,
-                              tmp->pf_ccr_window, tmp->pf_ccr_offset,
+                              tmp->pf_ccr_window,
+                              (unsigned long) tmp->pf_ccr_offset,
                               pcmcia_ccr_read(tmp, 0x00),
                               pcmcia_ccr_read(tmp, 0x02),
                               pcmcia_ccr_read(tmp, 0x04),



Home | Main Index | Thread Index | Old Index