From bc9ea9cf50aed04e2f9de2b1c1edcbcb4f39eba8 Mon Sep 17 00:00:00 2001 From: kugel Date: Thu, 6 May 2010 21:17:14 +0000 Subject: [PATCH] Fix some size_t related warnings (hopefully, they seem system dependant). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25852 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/mpegplayer/alloc.c | 2 +- apps/plugins/mpegplayer/disk_buf.c | 4 ++-- apps/plugins/shortcuts/shortcuts_common.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/plugins/mpegplayer/alloc.c b/apps/plugins/mpegplayer/alloc.c index da92f8754..e5c79c4b0 100644 --- a/apps/plugins/mpegplayer/alloc.c +++ b/apps/plugins/mpegplayer/alloc.c @@ -96,7 +96,7 @@ static void * mpeg_malloc_internal (unsigned char *mallocbuf, { void *x; - DEBUGF("mpeg_alloc_internal: bs:%lu s:%u reason:%s (%d)\n", + DEBUGF("mpeg_alloc_internal: bs:%zu s:%u reason:%s (%d)\n", bufsize, size, mpeg_get_reason_str(reason), reason); if ((size_t) (*mem_ptr + size) > bufsize) diff --git a/apps/plugins/mpegplayer/disk_buf.c b/apps/plugins/mpegplayer/disk_buf.c index 59d4816fb..398c205fc 100644 --- a/apps/plugins/mpegplayer/disk_buf.c +++ b/apps/plugins/mpegplayer/disk_buf.c @@ -710,12 +710,12 @@ ssize_t disk_buf_prepare_streaming(off_t pos, size_t len) else if (pos > disk_buf.filesize) pos = disk_buf.filesize; - DEBUGF("prepare streaming:\n pos:%ld len:%lu\n", pos, len); + DEBUGF("prepare streaming:\n pos:%ld len:%zu\n", pos, len); pos = disk_buf_lseek(pos, SEEK_SET); disk_buf_probe(pos, len, NULL, &len); - DEBUGF(" probe done: pos:%ld len:%lu\n", pos, len); + DEBUGF(" probe done: pos:%ld len:%zu\n", pos, len); len = disk_buf_send_msg(STREAM_RESET, pos); diff --git a/apps/plugins/shortcuts/shortcuts_common.c b/apps/plugins/shortcuts/shortcuts_common.c index da212a55a..0eb8c47e7 100644 --- a/apps/plugins/shortcuts/shortcuts_common.c +++ b/apps/plugins/shortcuts/shortcuts_common.c @@ -54,7 +54,7 @@ void write_int_instruction_to_file(int fd, char *instr, int value); void allocate_memory(void **buf, size_t *bufsize) { *buf = rb->plugin_get_buffer(bufsize); - DEBUGF("Got %ld bytes of memory\n", *bufsize); + DEBUGF("Got %zud bytes of memory\n", *bufsize); } -- 2.11.4.GIT