summaryrefslogtreecommitdiff
path: root/payloads/coreinfo
diff options
context:
space:
mode:
authorUlf Jordan <jordan@chalmers.se>2008-08-09 20:15:00 +0000
committerPeter Stuge <peter@stuge.se>2008-08-09 20:15:00 +0000
commitc5c1442fab2f524e32c41ef528e159af79d04af0 (patch)
tree6e804c2375a06dbe9f8c43efac160eee53d395c1 /payloads/coreinfo
parent68285699da68490681b330f0d345079b231c11cf (diff)
Fix garbage characters on screen. mvwaddch inserts one character,
not a character array. Signed-off-by: Ulf Jordan <jordan@chalmers.se> Acked-by: Jordan Crouse <jordan.crouse@amd.com> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3492 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'payloads/coreinfo')
-rw-r--r--payloads/coreinfo/ramdump_module.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/payloads/coreinfo/ramdump_module.c b/payloads/coreinfo/ramdump_module.c
index 16d7e96771..019b3d9deb 100644
--- a/payloads/coreinfo/ramdump_module.c
+++ b/payloads/coreinfo/ramdump_module.c
@@ -40,8 +40,8 @@ static void dump_ram(WINDOW *win, uint32_t addr, int row, int col)
for (i = 1; i < 257; i++) {
if (x == 0) {
mvwprintw(win, row + y, col - 1, "%08x", addr + 16 * y);
- mvwaddch(win, row + y, col + 59, (const chtype)"|");
- mvwaddch(win, row + y, col + 76, (const chtype)"|");
+ mvwaddch(win, row + y, col + 59, '|');
+ mvwaddch(win, row + y, col + 76, '|');
}
mvwprintw(win, row + y, col + x + 9, "%02x", ptr[i - 1]);
mvwprintw(win, row + y, 62 + count++, "%c", ptr[i - 1]);