From patchwork Wed Oct 28 12:29:28 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 37093 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 A9582B7BCC for ; Wed, 28 Oct 2009 23:32:19 +1100 (EST) Received: from localhost ([127.0.0.1]:38971 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N37hI-00051f-KQ for incoming@patchwork.ozlabs.org; Wed, 28 Oct 2009 08:32:16 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N37ez-0004BE-E5 for qemu-devel@nongnu.org; Wed, 28 Oct 2009 08:29:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N37eu-00047T-IT for qemu-devel@nongnu.org; Wed, 28 Oct 2009 08:29:52 -0400 Received: from [199.232.76.173] (port=45156 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N37eu-00047E-By for qemu-devel@nongnu.org; Wed, 28 Oct 2009 08:29:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:31470) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N37et-0004qb-Sn for qemu-devel@nongnu.org; Wed, 28 Oct 2009 08:29:48 -0400 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 n9SCTksF004684; Wed, 28 Oct 2009 08:29:46 -0400 Received: from localhost.localdomain (vpn1-5-215.ams2.redhat.com [10.36.5.215]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n9SCTYGX005218; Wed, 28 Oct 2009 08:29:45 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Wed, 28 Oct 2009 13:29:28 +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. Cc: Subject: [Qemu-devel] [PATCH 07/10] ac97: sizeof returns unsigned long 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 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 {