]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2008-11-14 Robert Millan <rmh@aybabtu.com>
authorrobertmh <robertmh@localhost>
Fri, 14 Nov 2008 17:57:39 +0000 (17:57 +0000)
committerrobertmh <robertmh@localhost>
Fri, 14 Nov 2008 17:57:39 +0000 (17:57 +0000)
        * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
        (GRUB_SERIAL_PORT_NUM): Fix misscalculation.

ChangeLog
term/i386/pc/serial.c

index ddba3f0521479ff71f4ec795139135e51d1cebb9..6018e6cc8cf6cb0b030688a103e5b0f9013678d8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-11-14  Robert Millan  <rmh@aybabtu.com>
+
+       * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
+       (GRUB_SERIAL_PORT_NUM): Fix misscalculation.
+
 2008-11-12  Robert Millan  <rmh@aybabtu.com>
 
        Make loader/i386/linux.c buildable on i386-pc (although disabled).
index 612492206d16de86f5533c04e51d9a0718bfa464..4cca42f46786422b6f6e87af670767f1f118f95b 100644 (file)
@@ -70,7 +70,7 @@ static const unsigned short *serial_hw_io_addr = (const unsigned short *) 0x0400
 #define GRUB_SERIAL_PORT_NUM 4
 #else
 static const unsigned short serial_hw_io_addr[] = { 0x3f8, 0x2f8, 0x3e8, 0x2e8 };
-#define GRUB_SERIAL_PORT_NUM (sizeof(serial_hw_io_addr)/(serial_hw_io_addr[0]))
+#define GRUB_SERIAL_PORT_NUM (sizeof(serial_hw_io_addr)/sizeof(serial_hw_io_addr[0]))
 #endif
 
 /* Return the port number for the UNITth serial device.  */