Source-Changes-HG archive

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

[src/netbsd-1-6]: src/sys/arch/macppc/dev Pull up revision 1.20 (requested by...



details:   https://anonhg.NetBSD.org/src/rev/17ec6085dd3c
branches:  netbsd-1-6
changeset: 528454:17ec6085dd3c
user:      lukem <lukem%NetBSD.org@localhost>
date:      Fri Jul 19 01:28:06 2002 +0000

description:
Pull up revision 1.20 (requested by bouyer in ticket #519):
Wrap debug printf in #ifdef DEBUG/#endif

diffstat:

 sys/arch/macppc/dev/wdc_obio.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (35 lines):

diff -r e41a87f037b1 -r 17ec6085dd3c sys/arch/macppc/dev/wdc_obio.c
--- a/sys/arch/macppc/dev/wdc_obio.c    Thu Jul 18 08:50:13 2002 +0000
+++ b/sys/arch/macppc/dev/wdc_obio.c    Fri Jul 19 01:28:06 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wdc_obio.c,v 1.19 2002/01/09 05:23:07 dbj Exp $        */
+/*     $NetBSD: wdc_obio.c,v 1.19.10.1 2002/07/19 01:28:06 lukem Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -323,10 +323,12 @@
                                        (half_tick << 21) |
                                        (inact_tick << 16) | (act_tick << 11);
                }
+#ifdef DEBUG
                if (conf) {
                        printf("conf[%d] = 0x%x, cyc = %d (%d ns), act = %d (%d ns), inact = %d\n",
                                        drive, conf, cycle_tick, min_cycle, act_tick, min_active, inact_tick);
                }
+#endif
                sc->sc_dmaconf[drive] = conf;
        }
        sc->sc_wdcdev.cap &= ~WDC_CAPABILITY_SELECT;
@@ -391,10 +393,12 @@
                        /* mask: 0x1ff00000 */
                        conf |= (cycle_tick << 21) | (act_tick << 25) | 0x100000;
                }
+#ifdef DEBUG
                if (conf) {
                        printf("ata4 conf[%d] = 0x%x, cyc = %d (%d ns), act = %d (%d ns), inact = %d\n",
                                        drive, conf, cycle_tick, min_cycle, act_tick, min_active, inact_tick);
                }
+#endif
                sc->sc_dmaconf[drive] = conf;
        }
        sc->sc_wdcdev.cap &= ~WDC_CAPABILITY_SELECT;



Home | Main Index | Thread Index | Old Index