MCPcopy Create free account
hub / github.com/coreboot/coreboot / bootlog_module_redraw

Function bootlog_module_redraw

payloads/coreinfo/bootlog_module.c:155–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155static int bootlog_module_redraw(WINDOW *win)
156{
157 print_module_title(win, "coreboot Bootlog");
158
159 if (!g_buf) {
160 return -1;
161 }
162
163 int x = 0, y = 0;
164 char *tmp = g_buf + g_line * SCREEN_X;
165
166 for (y = 0; y < LINES_SHOWN; y++) {
167 for (x = 0; x < SCREEN_X; x++) {
168 mvwaddch(win, y + 2, x, *tmp);
169 tmp++;
170 }
171
172 }
173
174 return 0;
175}
176
177static int bootlog_module_handle(int key)
178{

Callers

nothing calls this directly

Calls 2

print_module_titleFunction · 0.85
mvwaddchFunction · 0.85

Tested by

no test coverage detected