aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>1996-11-10 13:36:46 +0000
committerDavid Greenman <dg@FreeBSD.org>1996-11-10 13:36:46 +0000
commitd66e3876dd6e023c45cf02bd32fff3db2ce906c9 (patch)
treed958455c41a242503cebabb69eef94c52957dc1e
parent7737a49d16a66b6eb1a7d3ceb8392e0641c74693 (diff)
downloadsrc-d66e3876dd6e023c45cf02bd32fff3db2ce906c9.tar.gz
src-d66e3876dd6e023c45cf02bd32fff3db2ce906c9.zip
Put the packet error printf inside #ifdef DIAGNOSTIC.
Notes
Notes: svn path=/head/; revision=19610
-rw-r--r--sys/dev/de/if_de.c4
-rw-r--r--sys/pci/if_de.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/de/if_de.c b/sys/dev/de/if_de.c
index 0b590aa38141..2e84b2493842 100644
--- a/sys/dev/de/if_de.c
+++ b/sys/dev/de/if_de.c
@@ -21,7 +21,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: if_de.c,v 1.53 1996/10/10 19:44:10 wollman Exp $
+ * $Id: if_de.c,v 1.54 1996/10/15 19:22:39 bde Exp $
*
*/
@@ -2312,6 +2312,7 @@ tulip_rx_intr(
error = "bad crc";
}
}
+#ifdef DIAGNOSTIC
if (error != NULL && (sc->tulip_flags & TULIP_NOMESSAGES) == 0) {
printf(TULIP_PRINTF_FMT ": receive: " TULIP_EADDR_FMT ": %s\n",
TULIP_PRINTF_ARGS,
@@ -2319,6 +2320,7 @@ tulip_rx_intr(
error);
sc->tulip_flags |= TULIP_NOMESSAGES;
}
+#endif
}
}
next:
diff --git a/sys/pci/if_de.c b/sys/pci/if_de.c
index 0b590aa38141..2e84b2493842 100644
--- a/sys/pci/if_de.c
+++ b/sys/pci/if_de.c
@@ -21,7 +21,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: if_de.c,v 1.53 1996/10/10 19:44:10 wollman Exp $
+ * $Id: if_de.c,v 1.54 1996/10/15 19:22:39 bde Exp $
*
*/
@@ -2312,6 +2312,7 @@ tulip_rx_intr(
error = "bad crc";
}
}
+#ifdef DIAGNOSTIC
if (error != NULL && (sc->tulip_flags & TULIP_NOMESSAGES) == 0) {
printf(TULIP_PRINTF_FMT ": receive: " TULIP_EADDR_FMT ": %s\n",
TULIP_PRINTF_ARGS,
@@ -2319,6 +2320,7 @@ tulip_rx_intr(
error);
sc->tulip_flags |= TULIP_NOMESSAGES;
}
+#endif
}
}
next: