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

Function header

payloads/coreinfo/coreinfo.c:157–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155/* FIXME: Currently unused. */
156#if 0
157static void header(int row, const char *str)
158{
159 char buf[SCREEN_X];
160 char *ptr = buf;
161 int i;
162 int len = strlen(str) + 4;
163
164 for (i = 0; i < (SCREEN_X - len) / 2; i++)
165 ptr += sprintf(ptr, "=");
166
167 ptr += sprintf(ptr, "[ %s ]", str);
168
169 for (i = ((SCREEN_X - len) / 2) + len; i < SCREEN_X; i++)
170 ptr += sprintf(ptr, "=");
171
172 mvprintw(row, 0, buf);
173}
174#endif
175
176static void redraw_module(struct coreinfo_cat *cat)

Callers 1

mouseReleaseEventMethod · 0.85

Calls 3

strlenFunction · 0.85
sprintfFunction · 0.85
mvprintwFunction · 0.50

Tested by

no test coverage detected