mirror of
https://gitlab.com/80486DX2-66/gists
synced 2025-05-31 08:31:41 +05:30
reverse-ramdisk.c: reformat
This commit is contained in:
@@ -301,7 +301,7 @@ int tf_read(int ID, size_t offset, void* dest, size_t data_size) {
|
|||||||
#else
|
#else
|
||||||
NULL
|
NULL
|
||||||
#endif
|
#endif
|
||||||
)
|
) {
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
// Read the data from the file
|
// Read the data from the file
|
||||||
@@ -356,7 +356,7 @@ int tf_read(int ID, size_t offset, void* dest, size_t data_size) {
|
|||||||
for (size_t i = 0; i < data_size; i++) {
|
for (size_t i = 0; i < data_size; i++) {
|
||||||
if (i > 0)
|
if (i > 0)
|
||||||
putc(' ', stdout);
|
putc(' ', stdout);
|
||||||
printf("0x%02" PRIX8, *((uint8_t*)((uint8_t*)dest + i)));
|
printf("0x%02" PRIX8, *((uint8_t*) ((uint8_t*) dest + i)));
|
||||||
}
|
}
|
||||||
printf("'\n");
|
printf("'\n");
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
Reference in New Issue
Block a user