Do not try to display non-printable characters on the bootlog and
ramdump screens. This fixes unaligned display on serial console. The current isprint() implementation assumes a C locale, so also characters with the eigth bit set are supressed (they produced inconsistant results on VGA and serial anyway). Signed-off-by: Ulf Jordan <jordan@chalmers.se> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3621 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
@@ -63,7 +63,7 @@ static int bootlog_module_redraw(WINDOW *win)
|
||||
|
||||
/* FIXME: Handle lines longer than 80 characters. */
|
||||
while (y <= 18) {
|
||||
mvwaddnstr(win, y + 2, x, tmp, 1);
|
||||
mvwaddch(win, y + 2, x, isprint(*tmp) ? *tmp : ' ');
|
||||
x++;
|
||||
tmp++;
|
||||
if (*tmp == '\n') {
|
||||
|
Reference in New Issue
Block a user