[1914] 2008-11-14 Robert Millan <[email protected]>

Robert Millan <[email protected]>
Newsgroups gmane.comp.boot-loaders.grub.cvs
Message-ID <[email protected]>
Revision: 1914
          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=1914
Author:   robertmh
Date:     2008-11-14 17:57:39 +0000 (Fri, 14 Nov 2008)

Log Message:
-----------
2008-11-14  Robert Millan  <[email protected]>

        * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
        (GRUB_SERIAL_PORT_NUM): Fix misscalculation.

Modified Paths:
--------------
    trunk/grub2/ChangeLog
    trunk/grub2/term/i386/pc/serial.c

Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog	2008-11-12 20:53:48 UTC (rev 1913)
+++ trunk/grub2/ChangeLog	2008-11-14 17:57:39 UTC (rev 1914)
@@ -1,3 +1,8 @@
+2008-11-14  Robert Millan  <[email protected]>
+
+	* term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
+	(GRUB_SERIAL_PORT_NUM): Fix misscalculation.
+
 2008-11-12  Robert Millan  <[email protected]>
 
 	Make loader/i386/linux.c buildable on i386-pc (although disabled).

Modified: trunk/grub2/term/i386/pc/serial.c
===================================================================
--- trunk/grub2/term/i386/pc/serial.c	2008-11-12 20:53:48 UTC (rev 1913)
+++ trunk/grub2/term/i386/pc/serial.c	2008-11-14 17:57:39 UTC (rev 1914)
@@ -70,7 +70,7 @@
 #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.  */
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.