[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 07/10] ac97: sizeof needs %zd
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PATCH 07/10] ac97: sizeof needs %zd |
Date: |
Wed, 2 Dec 2009 11:49:39 +0100 |
This change makes DEBUG_AC97 to compile again
Signed-off-by: Juan Quintela <address@hidden>
---
hw/ac97.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/ac97.c b/hw/ac97.c
index f72c46d..36aab8a 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 {
--
1.6.5.2
- [Qemu-devel] [PATCH v3 00/10] *** SUBJECT HERE ***, Juan Quintela, 2009/12/02
- [Qemu-devel] [PATCH 01/10] audio: fix compilation of DEBUG_PLIVE, Juan Quintela, 2009/12/02
- [Qemu-devel] [PATCH 02/10] audio: port to vmstate, Juan Quintela, 2009/12/02
- [Qemu-devel] [PATCH 03/10] sb16: port to vmstate, Juan Quintela, 2009/12/02
- [Qemu-devel] [PATCH 04/10] es1370: port to vmstate, Juan Quintela, 2009/12/02
- [Qemu-devel] [PATCH 05/10] c4231a: port to vmstate, Juan Quintela, 2009/12/02
- [Qemu-devel] [PATCH 08/10] ac97: recalculate active after loadvm, Juan Quintela, 2009/12/02
- [Qemu-devel] [PATCH 07/10] ac97: sizeof needs %zd,
Juan Quintela <=
- [Qemu-devel] [PATCH 06/10] gus: port to vmstate, Juan Quintela, 2009/12/02
- [Qemu-devel] [PATCH 10/10] ac97: port to vmstate, Juan Quintela, 2009/12/02
- [Qemu-devel] [PATCH 09/10] ac97: up savevm version and remove active from state, Juan Quintela, 2009/12/02
- [Qemu-devel] Re: [PATCH v3 00/10] mean audio: port to vmstate, Juan Quintela, 2009/12/02