[PATCH 21/28] UML - Silence some message from the console driver

From: Jeff Dike
Date: Mon Jan 10 2005 - 00:54:36 EST


This shuts up some messages about ioctls being called when they are handled
by the line discipline.

Signed-off-by: Jeff Dike <jdike@xxxxxxxxxxx>

Index: linux-2.6.10/arch/um/drivers/line.c
===================================================================
--- linux-2.6.10.orig/arch/um/drivers/line.c 2005-01-04 11:12:17.000000000 -0500
+++ linux-2.6.10/arch/um/drivers/line.c 2005-01-07 00:37:45.000000000 -0500
@@ -198,6 +198,37 @@

ret = 0;
switch(cmd) {
+#ifdef TIOCGETP
+ case TIOCGETP:
+ case TIOCSETP:
+ case TIOCSETN:
+#endif
+#ifdef TIOCGETC
+ case TIOCGETC:
+ case TIOCSETC:
+#endif
+#ifdef TIOCGLTC
+ case TIOCGLTC:
+ case TIOCSLTC:
+#endif
+ case TCGETS:
+ case TCSETSF:
+ case TCSETSW:
+ case TCSETS:
+ case TCGETA:
+ case TCSETAF:
+ case TCSETAW:
+ case TCSETA:
+ case TCXONC:
+ case TCFLSH:
+ case TIOCOUTQ:
+ case TIOCINQ:
+ case TIOCGLCKTRMIOS:
+ case TIOCSLCKTRMIOS:
+ case TIOCPKT:
+ case TIOCGSOFTCAR:
+ case TIOCSSOFTCAR:
+ return -ENOIOCTLCMD;
#if 0
case TCwhatever:
/* do something */

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/