From 0148d1778b28b8c7f6205ecf20e3619aac1ccf8c Mon Sep 17 00:00:00 2001 From: Juan Quintela Date: Wed, 2 Dec 2009 11:49:39 +0100 Subject: [PATCH] ac97: sizeof needs %zd This change makes DEBUG_AC97 to compile again Signed-off-by: Juan Quintela Signed-off-by: Anthony Liguori --- hw/ac97.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/ac97.c b/hw/ac97.c index f72c46d03e..36aab8ae31 100644 --- a/hw/ac97.c +++ b/hw/ac97.c @@ -323,7 +323,7 @@ static void reset_bm_regs (AC97LinkState *s, AC97BusMasterRegs *r) static void mixer_store (AC97LinkState *s, uint32_t i, uint16_t v) { if (i + 2 > sizeof (s->mixer_data)) { - dolog ("mixer_store: index %d out of bounds %d\n", + dolog ("mixer_store: index %d out of bounds %zd\n", i, sizeof (s->mixer_data)); return; } @@ -337,7 +337,7 @@ static uint16_t mixer_load (AC97LinkState *s, uint32_t i) uint16_t val = 0xffff; if (i + 2 > sizeof (s->mixer_data)) { - dolog ("mixer_store: index %d out of bounds %d\n", + dolog ("mixer_store: index %d out of bounds %zd\n", i, sizeof (s->mixer_data)); } else { -- 2.11.4.GIT