diff options
author | Jens Arnold <amiconn@rockbox.org> | 2007-03-17 09:02:53 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2007-03-17 09:02:53 +0000 |
commit | 79c8a8cbbec5f1f0f7766d2b72ce12d51b3b849d (patch) | |
tree | d5c3fbab0ec01d2b0ca7d5278f15cf45f79b0763 /apps/plugins/iriver_flash.c | |
parent | 1329d7d3fde426a290c03ee92b1c701dde49851c (diff) | |
download | rockbox-79c8a8cbbec5f1f0f7766d2b72ce12d51b3b849d.tar.gz rockbox-79c8a8cbbec5f1f0f7766d2b72ce12d51b3b849d.zip |
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
Diffstat (limited to 'apps/plugins/iriver_flash.c')
-rw-r--r-- | apps/plugins/iriver_flash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/iriver_flash.c b/apps/plugins/iriver_flash.c index 3d2ae7dcd5..4a6002f3df 100644 --- a/apps/plugins/iriver_flash.c +++ b/apps/plugins/iriver_flash.c @@ -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; |