summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Müllner <christoph.muellner@theobroma-systems.com>2019-05-05 13:35:24 +0200
committerHeiko Stuebner <heiko@sntech.de>2019-08-11 11:26:41 +0200
commitb8c899bdd30d8e8714553f0b88b0f14a2b49d252 (patch)
tree629d743f2236ba38e8414ad3b502988199649f03
parent715f231387c8234c80e1feb02b7af5e17aac7709 (diff)
bouncebuf: Allow printf-simple to debug messages.
printf-simple does not have size_t-support (format string '%zu') with the effect, that the debug output will just contain a 'u' instead of the provided number. This patch converts the size_t value to unsigned long and use the format string %lu to print it. With that the debug messages can be printed with printf-simple. Signed-off-by: Christoph Müllner <christoph.muellner@theobroma-systems.com>
-rw-r--r--common/bouncebuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/bouncebuf.c b/common/bouncebuf.c
index 1b82243b06..5fd75989c3 100644
--- a/common/bouncebuf.c
+++ b/common/bouncebuf.c
@@ -22,7 +22,7 @@ static int addr_aligned(struct bounce_buffer *state)
/* Check if length is aligned */
if (state->len != state->len_aligned) {
- debug("Unaligned buffer length %zu\n", state->len);
+ debug("Unaligned buffer length %lu\n", (unsigned long)state->len);
return 0;
}