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:
Jens Arnold 2008-08-14 07:04:24 +00:00
parent 553469d8e2
commit 4ad26dbfcc

View file

@ -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)
{
char msgbuf[80];
char path[MAX_PATH];
int fd;
int rc;
@ -248,9 +247,8 @@ int codec_load_file(const char *plugin, struct codec_api *api)
fd = open(path, O_RDONLY);
if (fd < 0) {
snprintf(msgbuf, sizeof(msgbuf)-1, "Couldn't load codec: %s", path);
logf("Codec load error:%d", fd);
gui_syncsplash(HZ*2, msgbuf);
gui_syncsplash(HZ*2, "Couldn't load codec: %s", path);
return fd;
}