Skip to contentSkip to conversation

bug fix for ieee1275 console

PATCH New Bean 1 participant 1 message Apr 18, 2008

lore
Share & tools
lore

Bean

author
#0 lore raw

PATCH 1/1 bug fix for ieee1275 console

Hi,

term/ieee1275/ofconsole.c +4 -1
index b449507..0d3ba46 100644
@@ -84,7 +84,10 @@ grub_ofconsole_putchar (grub_uint32_t c)
     {
       grub_curr_x++;
       if (grub_curr_x > grub_ofconsole_width)
-	grub_putcode ('\n');
+        {
+          grub_putcode ('\n');
+          grub_curr_x++;
+        }
     }
   grub_ieee1275_write (stdout_ihandle, &chr, 1, 0);
 }

The reason for this patch is that after grub_putcode('\n'), grub_curr_x will be reset to 0, we need to increment it again for the current character.

Signature · 1 line
Bean