PATCH: eisa reports "0 device" not "0 devices"

PATCH: eisa reports "0 device" not "0 devices"

Post by Alan Co » Mon, 24 Mar 2003 01:00:14



Since it gets 1 device right it wasnt hard to fix 8)

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.5.65-bk3/drivers/eisa/eisa-bus.c linux-2.5.65-ac3/drivers/eisa/eisa-bus.c
--- linux-2.5.65-bk3/drivers/eisa/eisa-bus.c    2003-03-22 19:33:35.000000000 +0000

                        eisa_register_device (root, str, i);
                 }
         }
-        printk (KERN_INFO "EISA: Detected %d card%s.\n", c, c < 2 ? "" : "s");
+        printk (KERN_INFO "EISA: Detected %d card%s.\n", c, c == 1 ? "" : "s");

        return 0;
 }
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/