PATCH: Minor fix to serial debug option in 2.4.25

From: Nick Popoff
Date: Fri Mar 26 2004 - 22:13:21 EST


I work for a PC/104 embedded hardware company and I'm trying to get IRQ
sharing working for our serial boards and CPU boards with serial ports.

I'm having some trouble with set_multiport and discovered
SERIAL_DEBUG_INTR in serial.c as a helpful option. When I enabled it I
found a bug in one of the debug statements. I've attached a patch for
2.4.25 which fixes the bug.

I'm not on this list so please CC me if you have any questions or
comments. Thanks.
diff -Naur linux-2.4.25-orig/drivers/char/serial.c linux-2.4.25/drivers/char/serial.c
--- linux-2.4.25-orig/drivers/char/serial.c 2004-02-18 05:36:31.000000000 -0800
+++ linux-2.4.25/drivers/char/serial.c 2004-03-26 18:36:25.000000000 -0800
@@ -924,7 +924,7 @@
transmit_chars(info, 0);
#endif
if (pass_counter++ > RS_ISR_PASS_LIMIT) {
-#if SERIAL_DEBUG_INTR
+#ifdef SERIAL_DEBUG_INTR
printk("rs_single loop break.\n");
#endif
break;