forked from len0rd/rockbox
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
|
@ -418,10 +418,10 @@ int flash_rockbox(const char *filename, int section)
|
|||
if (section == SECT_ROMIMAGE)
|
||||
{
|
||||
uint32_t *p32 = (uint32_t *)audiobuf;
|
||||
|
||||
|
||||
if (pos+sizeof(struct flash_header) != *p32)
|
||||
{
|
||||
rb->snprintf(buf, sizeof(buf), "Incorrect relocation: 0x%08x/0x%08x",
|
||||
rb->snprintf(buf, sizeof(buf), "Incorrect relocation: 0x%08lx/0x%08lx",
|
||||
*p32, pos+sizeof(struct flash_header));
|
||||
rb->splash(HZ*10, buf);
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue