Skip to contentSkip to conversation

error in linux kernel source file istallion.c

DISCUSSION Dave Clendenan 2 participants 2 messages Jun 12, 2004 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

Very minor bug - printk with two '%d's and one int to print out.

Lines 853-854 of drivers/char/istallion.c (kernel 2.6.6) Code is an error message 'failed to un-register tty driver'

CC-ing the kenel list, since the manufacturer of the device that driver's for has changed hands, and the maintainer of the driver (if any :) may not be reachable at the 'support' addresses above.

Dave

#1 lore raw

On Sat, 12 Jun 2004 09:45:34 -0700 Dave Clendenan wrote:

| Very minor bug - printk with two '%d's and one int to print out.
| 
| Lines 853-854 of drivers/char/istallion.c (kernel 2.6.6)
| Code is an error message 'failed to un-register tty driver'

istallion: Remove duplicate "%d" in printk();

diffstat:=

 drivers/char/istallion.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/char/istallion.c renamed from drivers/char/istallion.c~printk_fixup +1 -1
diff -Naurp ./drivers/char/istallion.c~printk_fixup ./drivers/char/istallion.c
@@ -851,7 +851,7 @@ static void __exit istallion_module_exit
 	i = tty_unregister_driver(stli_serial);
 	if (i) {
 		printk("STALLION: failed to un-register tty driver, "
-			"errno=%d,%d\n", -i);
+			"errno=%d\n", -i);
 		restore_flags(flags);
 		return;
 	}