From patchwork Wed Oct 28 12:29:28 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [07/10] ac97: sizeof returns unsigned long X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 37093 Message-Id: To: qemu-devel@nongnu.org Cc: Date: Wed, 28 Oct 2009 13:29:28 +0100 From: Juan Quintela List-Id: qemu-devel.nongnu.org This change makes DEBUG_AC97 to compile again Signed-off-by: Juan Quintela --- hw/ac97.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/ac97.c b/hw/ac97.c index 610ca60..e4ecbe9 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 %lu\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 %lu\n", i, sizeof (s->mixer_data)); } else {