FreeList hexdump now takes width argument
This commit is contained in:
parent
80825e620c
commit
ac6abd7c10
3 changed files with 14 additions and 13 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue