Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Add a DIAGNOSTIC.



details:   https://anonhg.NetBSD.org/src/rev/0f533c1efb82
branches:  trunk
changeset: 508657:0f533c1efb82
user:      augustss <augustss%NetBSD.org@localhost>
date:      Tue Apr 17 00:05:33 2001 +0000

description:
Add a DIAGNOSTIC.

diffstat:

 sys/dev/usb/usbdi.c |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 2bc8bd96ae21 -r 0f533c1efb82 sys/dev/usb/usbdi.c
--- a/sys/dev/usb/usbdi.c       Mon Apr 16 22:41:09 2001 +0000
+++ b/sys/dev/usb/usbdi.c       Tue Apr 17 00:05:33 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usbdi.c,v 1.80 2001/04/13 11:19:58 augustss Exp $      */
+/*     $NetBSD: usbdi.c,v 1.81 2001/04/17 00:05:33 augustss Exp $      */
 /*     $FreeBSD: src/sys/dev/usb/usbdi.c,v 1.28 1999/11/17 22:33:49 n_hibma Exp $      */
 
 /*
@@ -996,6 +996,12 @@
 const struct usbd_quirks *
 usbd_get_quirks(usbd_device_handle dev)
 {
+#ifdef DIAGNOSTIC
+       if (dev == NULL) {
+               printf("usbd_get_quirks: dev == NULL\n");
+               return 0;
+       }
+#endif
        return (dev->quirks);
 }
 



Home | Main Index | Thread Index | Old Index