aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-12-02 11:49:39 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-12-03 09:41:26 -0600
commit0148d1778b28b8c7f6205ecf20e3619aac1ccf8c (patch)
tree7d10e85e45466d129d60e85e62c5acee1fcfc2a2 /hw
parent709ae102bcc68a40c333f9baff308b9a48380986 (diff)
ac97: sizeof needs %zd
This change makes DEBUG_AC97 to compile again Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/ac97.c4
1 files 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 {