mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Let GCC check arguments of some more printf-style functions, also for plugins and codecs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12815 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
1329d7d3fd
commit
79c8a8cbbe
20 changed files with 55 additions and 49 deletions
|
@ -207,7 +207,7 @@ static bool test_speed(void)
|
|||
goto error;
|
||||
}
|
||||
time = *rb->current_tick - time;
|
||||
rb->snprintf(text_buf, sizeof text_buf, "Create: %d KByte/s",
|
||||
rb->snprintf(text_buf, sizeof text_buf, "Create: %ld KByte/s",
|
||||
(25 * buf_len / time) >> 8);
|
||||
log_lcd(text_buf, true);
|
||||
rb->close(fd);
|
||||
|
@ -226,7 +226,7 @@ static bool test_speed(void)
|
|||
goto error;
|
||||
}
|
||||
time = *rb->current_tick - time;
|
||||
rb->snprintf(text_buf, sizeof text_buf, "Write A: %d KByte/s",
|
||||
rb->snprintf(text_buf, sizeof text_buf, "Write A: %ld KByte/s",
|
||||
(25 * buf_len / time) >> 8);
|
||||
log_lcd(text_buf, true);
|
||||
rb->close(fd);
|
||||
|
@ -245,7 +245,7 @@ static bool test_speed(void)
|
|||
goto error;
|
||||
}
|
||||
time = *rb->current_tick - time;
|
||||
rb->snprintf(text_buf, sizeof text_buf, "Write U: %d KByte/s",
|
||||
rb->snprintf(text_buf, sizeof text_buf, "Write U: %ld KByte/s",
|
||||
(25 * buf_len / time) >> 8);
|
||||
log_lcd(text_buf, true);
|
||||
rb->close(fd);
|
||||
|
@ -264,7 +264,7 @@ static bool test_speed(void)
|
|||
goto error;
|
||||
}
|
||||
time = *rb->current_tick - time;
|
||||
rb->snprintf(text_buf, sizeof text_buf, "Read A: %d KByte/s",
|
||||
rb->snprintf(text_buf, sizeof text_buf, "Read A: %ld KByte/s",
|
||||
(25 * buf_len / time) >> 8);
|
||||
log_lcd(text_buf, true);
|
||||
rb->close(fd);
|
||||
|
@ -283,7 +283,7 @@ static bool test_speed(void)
|
|||
goto error;
|
||||
}
|
||||
time = *rb->current_tick - time;
|
||||
rb->snprintf(text_buf, sizeof text_buf, "Read U: %d KByte/s",
|
||||
rb->snprintf(text_buf, sizeof text_buf, "Read U: %ld KByte/s",
|
||||
(25 * buf_len / time) >> 8);
|
||||
log_lcd(text_buf, true);
|
||||
rb->close(fd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue