mirror of
https://gitlab.com/80486DX2-66/gists
synced 2024-12-26 11:30:03 +05:30
reverse-ramdisk.c: use %p
instead of PRIXPTR
This commit is contained in:
parent
888b257a7b
commit
8e7743af40
@ -281,8 +281,8 @@ int tf_read(int ID, size_t offset, void* dest, size_t data_size) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
printf("Read: ID = %d, src = %016" PRIXPTR ", size = %zu -> '",
|
printf("Read: ID = %d, src = %p, size = %zu -> '",
|
||||||
ID, (uintptr_t)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 " ", *((uint8_t*)((uint8_t*)dest + i)));
|
||||||
printf("'\n");
|
printf("'\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user