Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pad Don't print spammy message if read is interrupte...
details: https://anonhg.NetBSD.org/src/rev/e01639e510c8
branches: trunk
changeset: 755919:e01639e510c8
user: pooka <pooka%NetBSD.org@localhost>
date: Mon Jun 28 17:45:08 2010 +0000
description:
Don't print spammy message if read is interrupted (ctrl-c)
while waiting for data.
diffstat:
sys/dev/pad/pad.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r 0a92f1de6eaf -r e01639e510c8 sys/dev/pad/pad.c
--- a/sys/dev/pad/pad.c Mon Jun 28 17:29:38 2010 +0000
+++ b/sys/dev/pad/pad.c Mon Jun 28 17:45:08 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pad.c,v 1.14 2010/05/01 23:40:21 pooka Exp $ */
+/* $NetBSD: pad.c,v 1.15 2010/06/28 17:45:08 pooka Exp $ */
/*-
* Copyright (c) 2007 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pad.c,v 1.14 2010/05/01 23:40:21 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pad.c,v 1.15 2010/06/28 17:45:08 pooka Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -359,8 +359,10 @@
hz/100);
if (err != 0 && err != EWOULDBLOCK) {
mutex_exit(&sc->sc_mutex);
- aprint_error_dev(sc->sc_dev,
- "cv_timedwait_sig returned %d\n", err);
+ if (err != ERESTART)
+ aprint_error_dev(sc->sc_dev,
+ "cv_timedwait_sig returned %d\n",
+ err);
return EINTR;
}
intr = sc->sc_intr;
Home |
Main Index |
Thread Index |
Old Index