Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Make the SPLUSBCHECK diagnostic test silent durn...



details:   https://anonhg.NetBSD.org/src/rev/79f0f494f6a6
branches:  trunk
changeset: 477618:79f0f494f6a6
user:      augustss <augustss%NetBSD.org@localhost>
date:      Mon Oct 25 10:51:46 1999 +0000

description:
Make the SPLUSBCHECK diagnostic test silent durning cold boot.

diffstat:

 sys/dev/usb/usbdivar.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r f9db09b60122 -r 79f0f494f6a6 sys/dev/usb/usbdivar.h
--- a/sys/dev/usb/usbdivar.h    Mon Oct 25 10:16:49 1999 +0000
+++ b/sys/dev/usb/usbdivar.h    Mon Oct 25 10:51:46 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usbdivar.h,v 1.37 1999/10/12 20:02:48 augustss Exp $   */
+/*     $NetBSD: usbdivar.h,v 1.38 1999/10/25 10:51:46 augustss Exp $   */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -227,7 +227,8 @@
 #ifdef DIAGNOSTIC
 #define SPLUSBCHECK \
        do { int _s = splusb(), _su = splusb(); \
-             if (_s != _su) printf("SPLUSBCHECK failed 0x%x!=0x%x, %s:%d\n", \
+            extern int cold; \
+             if (!cold && _s != _su) printf("SPLUSBCHECK failed 0x%x!=0x%x, %s:%d\n", \
                                   _s, _su, __FILE__, __LINE__); \
         } while (0)
 #else



Home | Main Index | Thread Index | Old Index