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

Function array_dump

tests/include/tests/lib/region_file_data.h:9–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#define REGION_FILE_BUFFER_SIZE (4 * KiB)
8
9void array_dump(void *array, size_t length)
10{
11 extern int printf(const char *, ...);
12 const uint8_t *data = array;
13
14 printf("{");
15 for (size_t i = 0; i < length; ++i) {
16 if (i % 8 == 0)
17 printf("\n\t");
18
19 printf("0x%02x, ", data[i]);
20 }
21 printf("\n};\n");
22}
23
24
25/*

Callers

nothing calls this directly

Calls 1

printfFunction · 0.85

Tested by

no test coverage detected