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

Function do_indentation_string

util/amdfwtool/amdfwread.c:297–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295#define MAX_INDENT_PER_LEVEL 4
296#define MAX_INDENTATION_LEN (MAX_NUM_LEVELS * MAX_INDENT_PER_LEVEL + 1)
297static void do_indentation_string(char *dest, uint8_t level)
298{
299 dest[0] = '\0';
300 for (uint8_t i = 0; i < level && i < MAX_NUM_LEVELS; i++)
301 strcat(dest, " ");
302 strcat(dest, "+-->");
303}
304
305static int amdfw_bios_dir_walk(FILE *fw, uint32_t bios_offset, uint32_t cookie, uint8_t level)
306{

Callers 2

amdfw_bios_dir_walkFunction · 0.85
amdfw_psp_dir_walkFunction · 0.85

Calls 1

strcatFunction · 0.85

Tested by

no test coverage detected