2005-01-10 05:50:16

by Jeff Dike

[permalink] [raw]
Subject: [PATCH 21/28] UML - Silence some message from the console driver

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

Signed-off-by: Jeff Dike <[email protected]>

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 */