Current-Users archive

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

Re: netbsd-5 (latest cvs) build failure in src/sys/dev/usb/ohci.c



On 2011-08-17, at 18:21 , Hisashi T Fujinaka wrote:

> It's a commit by jmcneill on 07-Aug-11 that uses device_printf that
> isn't defined. Anyone else seeing this?

Yes.  It's a pull-up from -current but netbsd-5 does not have 'device_printf'.


My work-around:

Index: sys/dev/usb/ohci.c
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/ohci.c,v
retrieving revision 1.196.4.1
diff -u -r1.196.4.1 ohci.c
--- sys/dev/usb/ohci.c  12 Aug 2011 20:52:25 -0000      1.196.4.1
+++ sys/dev/usb/ohci.c  18 Aug 2011 01:52:32 -0000
@@ -1330,8 +1330,8 @@
                        DPRINTFN(5,("add ITD %p\n", sitd));
                        continue;
                }
-               device_printf(sc->sc_dev, "WARNING: addr 0x%08lx not found\n",
-                   (u_long)done);
+               printf("%s: WARNING: addr 0x%08lx not found\n",
+                   device_xname(sc->sc_dev), (u_long)done);
                break;
        }
 

-- 
    aew



Home | Main Index | Thread Index | Old Index