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:
parent
8e7743af40
commit
e7990709ed
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user