mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Fix one printf format string warning by applying a simplification.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18276 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
553469d8e2
commit
4ad26dbfcc
1 changed files with 1 additions and 3 deletions
|
@ -239,7 +239,6 @@ int codec_load_buf(unsigned int hid, struct codec_api *api) {
|
||||||
|
|
||||||
int codec_load_file(const char *plugin, struct codec_api *api)
|
int codec_load_file(const char *plugin, struct codec_api *api)
|
||||||
{
|
{
|
||||||
char msgbuf[80];
|
|
||||||
char path[MAX_PATH];
|
char path[MAX_PATH];
|
||||||
int fd;
|
int fd;
|
||||||
int rc;
|
int rc;
|
||||||
|
@ -248,9 +247,8 @@ int codec_load_file(const char *plugin, struct codec_api *api)
|
||||||
|
|
||||||
fd = open(path, O_RDONLY);
|
fd = open(path, O_RDONLY);
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
snprintf(msgbuf, sizeof(msgbuf)-1, "Couldn't load codec: %s", path);
|
|
||||||
logf("Codec load error:%d", fd);
|
logf("Codec load error:%d", fd);
|
||||||
gui_syncsplash(HZ*2, msgbuf);
|
gui_syncsplash(HZ*2, "Couldn't load codec: %s", path);
|
||||||
return fd;
|
return fd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue