diff options
author | iwasaki <iwasaki@FreeBSD.org> | 2008-01-28 16:21:34 +0000 |
---|---|---|
committer | iwasaki <iwasaki@FreeBSD.org> | 2008-01-28 16:21:34 +0000 |
commit | b46ea5a5ec13975464c93fde529e20a35d070bbc (patch) | |
tree | bfec7f67d1ec9f28ab319c0ecaa65a5e7c72be3a /sys/dev/ciss/ciss.c | |
parent | 98cf7160125a5700c41b39bf6877702f9912667f (diff) | |
download | FreeBSD-src-b46ea5a5ec13975464c93fde529e20a35d070bbc.zip FreeBSD-src-b46ea5a5ec13975464c93fde529e20a35d070bbc.tar.gz |
Don't repeat error logging about NOP message sending if
ciss_report_request() return an error (which is most likely data
underrun).
Noticed by: Mark Atkinson
MFC after: 1 week
Diffstat (limited to 'sys/dev/ciss/ciss.c')
-rw-r--r-- | sys/dev/ciss/ciss.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/ciss/ciss.c b/sys/dev/ciss/ciss.c index 41f290d..e33ff32 100644 --- a/sys/dev/ciss/ciss.c +++ b/sys/dev/ciss/ciss.c @@ -3133,10 +3133,14 @@ static void ciss_nop_complete(struct ciss_request *cr) { struct ciss_softc *sc; + static int first_time = 1; sc = cr->cr_sc; if (ciss_report_request(cr, NULL, NULL) != 0) { - ciss_printf(sc, "SENDING NOP MESSAGE FAILED\n"); + if (first_time == 1) { + first_time = 0; + ciss_printf(sc, "SENDING NOP MESSAGE FAILED (not logging anymore)\n"); + } } ciss_release_request(cr); |