From 94a8ab8acb88c679d8218b34445a12153bbca782 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Mon, 10 May 1999 00:20:46 +0000 Subject: [PATCH] #if 0 some unused code (debug?) to quiet a warning. --- sys/dev/tx/if_tx.c | 7 +++++-- sys/pci/if_tx.c | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/sys/dev/tx/if_tx.c b/sys/dev/tx/if_tx.c index db5d268b1ab..c83b91bc0f1 100644 --- a/sys/dev/tx/if_tx.c +++ b/sys/dev/tx/if_tx.c @@ -1,5 +1,5 @@ /* $OpenBSD: if_tx.c,v 1.3 1998/10/10 04:30:09 jason Exp $ */ -/* $Id: if_tx.c,v 1.25 1999/04/24 20:14:01 peter Exp $ */ +/* $Id: if_tx.c,v 1.26 1999/05/09 17:07:02 peter Exp $ */ /*- * Copyright (c) 1997 Semen Ustimenko (semen@iclub.nsu.ru) @@ -1373,8 +1373,10 @@ epic_set_rx_mode( return; } +#if 0 void -dump_phy_regs(epic_softc_t *sc) { +dump_phy_regs(epic_softc_t *sc) +{ printf("BMCR: 0x%04x\n", PHY_READ_2(sc, DP83840_BMCR)); printf("BMSR: 0x%04x\n", PHY_READ_2(sc, DP83840_BMSR)); @@ -1386,6 +1388,7 @@ dump_phy_regs(epic_softc_t *sc) { printf("INTMASK: 0x%04x\n", PHY_READ_2(sc, QS6612_INTMASK)); printf("BPCR: 0x%04x\n", PHY_READ_2(sc, QS6612_BPCR)); } +#endif /* * Synopsis: Reset PHY and do PHY-special initialization: diff --git a/sys/pci/if_tx.c b/sys/pci/if_tx.c index db5d268b1ab..c83b91bc0f1 100644 --- a/sys/pci/if_tx.c +++ b/sys/pci/if_tx.c @@ -1,5 +1,5 @@ /* $OpenBSD: if_tx.c,v 1.3 1998/10/10 04:30:09 jason Exp $ */ -/* $Id: if_tx.c,v 1.25 1999/04/24 20:14:01 peter Exp $ */ +/* $Id: if_tx.c,v 1.26 1999/05/09 17:07:02 peter Exp $ */ /*- * Copyright (c) 1997 Semen Ustimenko (semen@iclub.nsu.ru) @@ -1373,8 +1373,10 @@ epic_set_rx_mode( return; } +#if 0 void -dump_phy_regs(epic_softc_t *sc) { +dump_phy_regs(epic_softc_t *sc) +{ printf("BMCR: 0x%04x\n", PHY_READ_2(sc, DP83840_BMCR)); printf("BMSR: 0x%04x\n", PHY_READ_2(sc, DP83840_BMSR)); @@ -1386,6 +1388,7 @@ dump_phy_regs(epic_softc_t *sc) { printf("INTMASK: 0x%04x\n", PHY_READ_2(sc, QS6612_INTMASK)); printf("BPCR: 0x%04x\n", PHY_READ_2(sc, QS6612_BPCR)); } +#endif /* * Synopsis: Reset PHY and do PHY-special initialization: