1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2024-12-27 05:40:17 +05:30

reverse-ramdisk.c: use %p instead of PRIXPTR

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

View File

@ -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");