Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mac68k/dev #ifdef DIAGNOSTIC should not cause funct...



details:   https://anonhg.NetBSD.org/src/rev/686b4e0a7f44
branches:  trunk
changeset: 445254:686b4e0a7f44
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Oct 19 18:21:55 2018 +0000

description:
#ifdef DIAGNOSTIC should not cause functional differences (even if
minor or cosmetic)

diffstat:

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

diffs (33 lines):

diff -r 25579595a6b2 -r 686b4e0a7f44 sys/arch/mac68k/dev/adb.c
--- a/sys/arch/mac68k/dev/adb.c Fri Oct 19 16:16:21 2018 +0000
+++ b/sys/arch/mac68k/dev/adb.c Fri Oct 19 18:21:55 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: adb.c,v 1.56 2014/10/18 08:33:25 snj Exp $     */
+/*     $NetBSD: adb.c,v 1.57 2018/10/19 18:21:55 martin Exp $  */
 
 /*
  * Copyright (C) 1994  Bradley A. Grantham
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: adb.c,v 1.56 2014/10/18 08:33:25 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: adb.c,v 1.57 2018/10/19 18:21:55 martin Exp $");
 
 #include "opt_adb.h"
 
@@ -192,11 +192,13 @@
                /* print out what kind of ADB device we have found */
                aprint_normal("%s addr %d: ", name, aa_args->adbaddr);
                switch(aa_args->origaddr) {
+               case 0:
 #ifdef DIAGNOSTIC
-               case 0:
                        aprint_normal("ADB event device");
+#endif
                        rv = UNCONF;
                        break;
+#ifdef DIAGNOSTIC
                case ADBADDR_SECURE:
                        aprint_normal("security dongle (%d)",
                            aa_args->handler_id);



Home | Main Index | Thread Index | Old Index