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

Function print_submenu

payloads/coreinfo/coreinfo.c:83–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83static void print_submenu(struct coreinfo_cat *cat)
84{
85 int i, j;
86 char menu[80];
87 char *ptr = menu;
88
89 wmove(menuwin, 0, 0);
90
91 for (j = 0; j < SCREEN_X; j++)
92 waddch(menuwin, ' ');
93
94 if (!cat->count)
95 return;
96
97 for (i = 0; i < cat->count; i++)
98 ptr += sprintf(ptr, "[%c: %s] ", 'A' + i,
99 cat->modules[i]->name);
100
101 mvwprintw(menuwin, 0, 0, menu);
102}
103
104#if CONFIG(SHOW_DATE_TIME)
105static void print_time_and_date(void)

Callers 1

loopFunction · 0.85

Calls 4

sprintfFunction · 0.85
wmoveFunction · 0.50
waddchFunction · 0.50
mvwprintwFunction · 0.50

Tested by

no test coverage detected