bootloaders: Correct formatting of 'no parition found' table dump

Change-Id: I0eb48a0a40d317f9b47b181e0a31bef7ffde1e15
This commit is contained in:
Solomon Peachy 2025-11-24 21:16:43 -05:00
parent 7511d7e514
commit 936482abb5
6 changed files with 12 additions and 12 deletions

View file

@ -660,8 +660,8 @@ static void init(void)
for (int i = 0 ; i < NUM_VOLUMES ; i++) { for (int i = 0 ; i < NUM_VOLUMES ; i++) {
disk_partinfo(i, &pinfo); disk_partinfo(i, &pinfo);
if (pinfo.type) if (pinfo.type)
lcd_putsf(0, line++, "P%d T%02x S%08lx", lcd_putsf(0, line++, "P%d T%02x S%llx",
i, pinfo.type, pinfo.size); i, pinfo.type, (unsigned long long)pinfo.size);
} }
lcd_update(); lcd_update();

View file

@ -121,8 +121,8 @@ void error(int errortype, int error, bool shutdown)
struct partinfo pinfo; struct partinfo pinfo;
disk_partinfo(i, &pinfo); disk_partinfo(i, &pinfo);
if (pinfo.type) if (pinfo.type)
printf("P%d T%02x S%08lx", printf("P%d T%02x S%llx",
i, pinfo.type, pinfo.size); i, pinfo.type, (unsigned long long)pinfo.size);
} }
#endif #endif
break; break;

View file

@ -954,8 +954,8 @@ void main(void)
for (int i = 0 ; i < NUM_VOLUMES ; i++) { for (int i = 0 ; i < NUM_VOLUMES ; i++) {
disk_partinfo(i, &pinfo); disk_partinfo(i, &pinfo);
if (pinfo.type) if (pinfo.type)
printf("P%d T%02x S%08lx", printf("P%d T%02x S%llx",
i, pinfo.type, pinfo.size); i, pinfo.type, (unsigned long long)pinfo.size);
} }
fatal_error(ERR_RB); fatal_error(ERR_RB);
} }

View file

@ -377,8 +377,8 @@ void* main(void)
for (int i = 0 ; i < NUM_VOLUMES ; i++) { for (int i = 0 ; i < NUM_VOLUMES ; i++) {
disk_partinfo(i, &pinfo); disk_partinfo(i, &pinfo);
if (pinfo.type) if (pinfo.type)
printf("P%d T%02x S%08lx", printf("P%d T%02x S%lllx",
i, pinfo.type, pinfo.size); i, pinfo.type, (unsigned long long)pinfo.size);
} }
printf("No partition found"); printf("No partition found");

View file

@ -567,8 +567,8 @@ void main(void)
for (int i = 0 ; i < NUM_VOLUMES ; i++) { for (int i = 0 ; i < NUM_VOLUMES ; i++) {
disk_partinfo(i, &pinfo); disk_partinfo(i, &pinfo);
if (pinfo.type) if (pinfo.type)
printf("P%d T%02x S%08lx", printf("P%d T%02x S%llx",
i, pinfo.type, pinfo.size); i, pinfo.type, (unsigned long long)pinfo.size);
} }
while(button_get(true) != SYS_USB_CONNECTED) {}; while(button_get(true) != SYS_USB_CONNECTED) {};
} }

View file

@ -627,8 +627,8 @@ void main(void)
for (int i = 0 ; i < NUM_VOLUMES ; i++) { for (int i = 0 ; i < NUM_VOLUMES ; i++) {
disk_partinfo(i, &pinfo); disk_partinfo(i, &pinfo);
if (pinfo.type) if (pinfo.type)
printf("P%d T%02x S%08lx", printf("P%d T%02x S%llx",
i, pinfo.type, pinfo.size); i, pinfo.type, (unsigned long long)pinfo.size);
} }
while(button_get(true) != SYS_USB_CONNECTED) {}; while(button_get(true) != SYS_USB_CONNECTED) {};
} }