summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2012-05-02 17:37:10 -0400
committerMichael Sevakis <jethead71@rockbox.org>2012-05-02 17:37:10 -0400
commit7e3e9b92891bbc871b458f192994108eae3bd796 (patch)
tree54e16ad59ea50191d23e45b9390cd22ac78c53f4 /firmware
parent0d568bb6ce2a3100e82775998289a12f27c1d1f6 (diff)
downloadrockbox-7e3e9b92891bbc871b458f192994108eae3bd796.tar.gz
rockbox-7e3e9b92891bbc871b458f192994108eae3bd796.zip
Stop the BDEBUGF format warnings in buflib.c
Change-Id: I63881da2b857cf4e462f7730f9cd54dc1743fc2f
Diffstat (limited to 'firmware')
-rw-r--r--firmware/buflib.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/buflib.c b/firmware/buflib.c
index 098872f317..a007603161 100644
--- a/firmware/buflib.c
+++ b/firmware/buflib.c
@@ -113,7 +113,8 @@ buflib_init(struct buflib_context *ctx, void *buf, size_t size)
ctx->alloc_end = bd_buf;
ctx->compact = true;
- BDEBUGF("buflib initialized with %d.%2d kiB", size / 1024, (size%1000)/10);
+ BDEBUGF("buflib initialized with %lu.%2lu kiB",
+ (unsigned long)size / 1024, ((unsigned long)size%1000)/10);
}
/* Allocate a new handle, returning 0 on failure */
@@ -203,7 +204,7 @@ move_block(struct buflib_context* ctx, union buflib_data* block, int shift)
int handle = ctx->handle_table - tmp;
BDEBUGF("%s(): moving \"%s\"(id=%d) by %d(%d)\n", __func__, block[3].name,
- handle, shift, shift*sizeof(union buflib_data));
+ handle, shift, shift*(int)sizeof(union buflib_data));
new_block = block + shift;
new_start = tmp->alloc + shift*sizeof(union buflib_data);