mirror of
https://gitlab.com/80486DX2-66/gists
synced 2025-01-10 17:32:05 +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 -> '",
|
printf("Read: ID = %d, src = %p, size = %zu -> '",
|
||||||
ID, dest, data_size);
|
ID, dest, data_size);
|
||||||
for (size_t i = 0; i < data_size; i++)
|
for (size_t i = 0; i < data_size; i++)
|
||||||
printf("0x%02" PRIX8 " ", *((uint8_t*)((uint8_t*)dest + i)));
|
printf("0x%02" PRIX8 "%c", *((uint8_t*)((uint8_t*)dest + i)),
|
||||||
printf("'\n");
|
i == (data_size - 1) ? '\'' : ' ');
|
||||||
|
printf("\n");
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user