diff options
author | Juan Quintela <quintela@redhat.com> | 2009-12-02 11:49:39 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-03 09:41:26 -0600 |
commit | 0148d1778b28b8c7f6205ecf20e3619aac1ccf8c (patch) | |
tree | 7d10e85e45466d129d60e85e62c5acee1fcfc2a2 /hw/ac97.c | |
parent | 709ae102bcc68a40c333f9baff308b9a48380986 (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/ac97.c')
-rw-r--r-- | hw/ac97.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 { |