Skip to content

Commit

Permalink
fix: remove useless argument
Browse files Browse the repository at this point in the history
```
test/detect-save-type/./main.c:69:16: warning: too many arguments for format [-Wformat-extra-args]
   69 |     tte_printf("Save Type: Flash\n", err);
      |                ^~~~~~~~~~~~~~~~~~~~
```
  • Loading branch information
laqieer committed Dec 24, 2024
1 parent 028a850 commit 6d8a487
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/detect-save-type/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ int main(void) {
int err;

REG_DISPCNT = DCNT_MODE0 | DCNT_BG0;

tte_init_chr4c_default(0, BG_CBB(0) | BG_SBB(31));

tte_init_con();
Expand Down Expand Up @@ -64,9 +64,9 @@ int main(void) {
goto end;
}
}

// Test Flash
tte_printf("Save Type: Flash\n", err);
tte_printf("Save Type: Flash\n");
err = flash_init(FLASH_SIZE_AUTO);
tte_printf("Manufacturer ID: %X\nDevice ID: %X\n", gFlashInfo.manufacturer, gFlashInfo.device);
switch (gFlashInfo.size) {
Expand All @@ -88,5 +88,5 @@ int main(void) {
while (1) {
VBlankIntrWait();
}

}

0 comments on commit 6d8a487

Please sign in to comment.