From 7e3e9b92891bbc871b458f192994108eae3bd796 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Wed, 2 May 2012 17:37:10 -0400 Subject: [PATCH] Stop the BDEBUGF format warnings in buflib.c Change-Id: I63881da2b857cf4e462f7730f9cd54dc1743fc2f --- firmware/buflib.c | 5 +++-- 1 file 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);