From patchwork Wed Dec 2 10:49:39 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 39988 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 5646EB7BC7 for ; Wed, 2 Dec 2009 22:12:32 +1100 (EST) Received: from localhost ([127.0.0.1]:57727 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFn8H-0007Uj-1j for incoming@patchwork.ozlabs.org; Wed, 02 Dec 2009 06:12:29 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NFmnB-000561-SX for qemu-devel@nongnu.org; Wed, 02 Dec 2009 05:50:41 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NFmn5-0004zh-Ko for qemu-devel@nongnu.org; Wed, 02 Dec 2009 05:50:39 -0500 Received: from [199.232.76.173] (port=33733 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFmn5-0004zV-Fj for qemu-devel@nongnu.org; Wed, 02 Dec 2009 05:50:35 -0500 Received: from mx1.redhat.com ([209.132.183.28]:9322) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NFmn5-0005zu-8k for qemu-devel@nongnu.org; Wed, 02 Dec 2009 05:50:35 -0500 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nB2AoY7V007706 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 2 Dec 2009 05:50:34 -0500 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nB2AoMJM016700; Wed, 2 Dec 2009 05:50:33 -0500 From: Juan Quintela To: qemu-devel@nongnu.org Date: Wed, 2 Dec 2009 11:49:39 +0100 Message-Id: In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.18 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: [Qemu-devel] [PATCH 07/10] ac97: sizeof needs %zd X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@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 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 {