Source-Changes-HG archive

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

[src/trunk]: src/sys/dev LP64 printf fixes.



details:   https://anonhg.NetBSD.org/src/rev/f5b6df476338
branches:  trunk
changeset: 481775:f5b6df476338
user:      nathanw <nathanw%NetBSD.org@localhost>
date:      Sat Feb 05 20:02:42 2000 +0000

description:
LP64 printf fixes.

diffstat:

 sys/dev/ic/i82365.c     |  6 +++---
 sys/dev/pcmcia/pcmcia.c |  5 +++--
 2 files changed, 6 insertions(+), 5 deletions(-)

diffs (39 lines):

diff -r eefac4ce315f -r f5b6df476338 sys/dev/ic/i82365.c
--- a/sys/dev/ic/i82365.c       Sat Feb 05 19:53:54 2000 +0000
+++ b/sys/dev/ic/i82365.c       Sat Feb 05 20:02:42 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i82365.c,v 1.45 2000/02/05 04:34:36 enami Exp $        */
+/*     $NetBSD: i82365.c,v 1.46 2000/02/05 20:02:42 nathanw Exp $      */
 
 #define        PCICDEBUG
 
@@ -361,8 +361,8 @@
        struct pcic_softc *sc = (struct pcic_softc *)h->ph_parent;
        int reg;
 
-       DPRINTF(("%s: attach finish socket %d\n", h->ph_parent->dv_xname,
-           h - &sc->handle[0]));
+       DPRINTF(("%s: attach finish socket %ld\n", h->ph_parent->dv_xname,
+           (long) (h - &sc->handle[0])));
        /*
         * Set up a powerhook to ensure it continues to interrupt on
         * card detect even after suspend.
diff -r eefac4ce315f -r f5b6df476338 sys/dev/pcmcia/pcmcia.c
--- a/sys/dev/pcmcia/pcmcia.c   Sat Feb 05 19:53:54 2000 +0000
+++ b/sys/dev/pcmcia/pcmcia.c   Sat Feb 05 20:02:42 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pcmcia.c,v 1.16 2000/02/04 01:27:14 cgd Exp $  */
+/*     $NetBSD: pcmcia.c,v 1.17 2000/02/05 20:02:43 nathanw Exp $      */
 
 #define        PCMCIADEBUG
 
@@ -334,7 +334,8 @@
 
 #ifdef DIAGNOSTIC
        if (sizeof *ent > ent_size)
-               panic("pcmcia_product_lookup: bogus ent_size %d", ent_size);
+               panic("pcmcia_product_lookup: bogus ent_size %ld", 
+                     (long) ent_size);
 #endif
 
         for (ent = tab;



Home | Main Index | Thread Index | Old Index