forked from len0rd/rockbox
Fix simulator builds, and some debugf() format strings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12817 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
75e1fd718f
commit
f68362ad6f
14 changed files with 37 additions and 36 deletions
|
@ -217,7 +217,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
|||
return PLUGIN_OK;
|
||||
}
|
||||
|
||||
DEBUGF("Found %s at offset %d\n", word.word, reverse(word.offset));
|
||||
DEBUGF("Found %s at offset %ld\n", word.word, reverse(word.offset));
|
||||
|
||||
/* now open the description file */
|
||||
fData = rb->open(DICT_DESC, O_RDONLY);
|
||||
|
|
|
@ -830,7 +830,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
|||
/* Grab most of the buffer for the compressed video - leave some for
|
||||
PCM audio data and some for libmpeg2 malloc use. */
|
||||
buffer_size = audiosize - (PCMBUFFER_SIZE+AUDIOBUFFER_SIZE+LIBMPEG2BUFFER_SIZE);
|
||||
DEBUGF("audiosize=%d, buffer_size=%d\n",audiosize,buffer_size);
|
||||
DEBUGF("audiosize=%d, buffer_size=%ld\n",audiosize,buffer_size);
|
||||
buffer = mpeg2_malloc(buffer_size,-1);
|
||||
|
||||
if (buffer == NULL)
|
||||
|
|
|
@ -154,7 +154,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
|||
|
||||
rb = api;
|
||||
|
||||
DEBUGF("%s - %s\n", parameter, &filename[rb->strlen(filename)-4]);
|
||||
DEBUGF("%s - %s\n", (char *)parameter, &filename[rb->strlen(filename)-4]);
|
||||
/* Check the extension. We only allow .m3u files. */
|
||||
if(rb->strcasecmp(&filename[rb->strlen(filename)-4], ".m3u") &&
|
||||
rb->strcasecmp(&filename[rb->strlen(filename)-5], ".m3u8")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue