1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2024-11-08 18:02:23 +05:30

reverse-ramdisk.c: improve format of read IR

This commit is contained in:
Intel A80486DX2-66 2024-01-03 21:30:07 +03:00
parent 8e7743af40
commit e7990709ed
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -284,8 +284,9 @@ int tf_read(int ID, size_t offset, void* dest, size_t data_size) {
printf("Read: ID = %d, src = %p, size = %zu -> '",
ID, dest, data_size);
for (size_t i = 0; i < data_size; i++)
printf("0x%02" PRIX8 " ", *((uint8_t*)((uint8_t*)dest + i)));
printf("'\n");
printf("0x%02" PRIX8 "%c", *((uint8_t*)((uint8_t*)dest + i)),
i == (data_size - 1) ? '\'' : ' ');
printf("\n");
fflush(stdout);
#endif