FreeList hexdump now takes width argument

This commit is contained in:
Imbus 2025-09-24 20:29:12 +02:00
parent 80825e620c
commit ac6abd7c10
3 changed files with 14 additions and 13 deletions

View file

@ -47,7 +47,7 @@ int main() {
const uint32_t head_crc = crc32(headblock, BUFFER_SIZE / 2);
/* Display a nice hexdump so you can see the layout */
hexdump(headblock, BUFFER_SIZE * 2);
hexdump(headblock, BUFFER_SIZE * 2, 32);
if (!fl_init(&fl, (uintptr_t)mem, BUFFER_SIZE, sizeof(Vec3))) {
printf("Freelist failed to initialize!\n");
@ -130,7 +130,7 @@ int main() {
assert(crc32(tailblock, BUFFER_SIZE / 2) == tail_crc);
/* Hexdump the heap, free the block and declare victory */
hexdump(headblock, BUFFER_SIZE * 2);
hexdump(headblock, BUFFER_SIZE * 2, 32);
free(headblock);
printf("All tests passed!\n");
return 0;