Module Name: src
Committed By: nat
Date: Mon Oct 28 14:32:04 UTC 2024
Modified Files:
src/sys/dev/ic: ncr5380sbc.c
Log Message:
Avoid spamming console with abort messages.
This is common when using a device such as dse(4) and is a harmless message.
Part of kern/58452.
As posted to tech-kern:
https://mail-index.netbsd.org/tech-kern/2024/08/02/msg029652.html
Ok thorpej@.
To generate a diff of this commit:
cvs rdiff -u -r1.70 -r1.71 src/sys/dev/ic/ncr5380sbc.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/ic/ncr5380sbc.c
diff -u src/sys/dev/ic/ncr5380sbc.c:1.70 src/sys/dev/ic/ncr5380sbc.c:1.71
--- src/sys/dev/ic/ncr5380sbc.c:1.70 Mon Oct 28 14:28:01 2024
+++ src/sys/dev/ic/ncr5380sbc.c Mon Oct 28 14:32:04 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: ncr5380sbc.c,v 1.70 2024/10/28 14:28:01 nat Exp $ */
+/* $NetBSD: ncr5380sbc.c,v 1.71 2024/10/28 14:32:04 nat Exp $ */
/*
* Copyright (c) 1995 David Jones, Gordon W. Ross
@@ -71,7 +71,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ncr5380sbc.c,v 1.70 2024/10/28 14:28:01 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ncr5380sbc.c,v 1.71 2024/10/28 14:32:04 nat Exp $");
#include "opt_ddb.h"
@@ -621,9 +621,11 @@ ncr5380_scsipi_request(struct scsipi_cha
/* Terminate any current command. */
sr = sc->sc_current;
if (sr) {
+#ifdef NCR5380_DEBUG
printf("%s: polled request aborting %d/%d\n",
device_xname(sc->sc_dev),
sr->sr_target, sr->sr_lun);
+#endif
ncr5380_abort(sc);
}
if (sc->sc_state != NCR_IDLE) {