Skip to contentSkip to conversation

PATCH: Minor fix to serial debug option in 2.4.25

PATCH Nick Popoff 1 participant 1 message Mar 27, 2004 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

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.

drivers/char/serial.c +1 -1
diff -Naur linux-2.4.25-orig/drivers/char/serial.c linux-2.4.25/drivers/char/serial.c
@@ -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;