From patchwork Thu Oct 22 14:36:30 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 36687 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 7C59FB7B9F for ; Fri, 23 Oct 2009 02:03:51 +1100 (EST) Received: from localhost ([127.0.0.1]:52972 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0zCe-0002Bv-Fs for incoming@patchwork.ozlabs.org; Thu, 22 Oct 2009 11:03:48 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N0ymn-0007kt-7Z for qemu-devel@nongnu.org; Thu, 22 Oct 2009 10:37:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N0ymh-0007ht-Pt for qemu-devel@nongnu.org; Thu, 22 Oct 2009 10:37:03 -0400 Received: from [199.232.76.173] (port=46182 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0ymh-0007hS-1E for qemu-devel@nongnu.org; Thu, 22 Oct 2009 10:36:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56263) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N0ymg-0007Go-JY for qemu-devel@nongnu.org; Thu, 22 Oct 2009 10:36:58 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9MEavFa023853 for ; Thu, 22 Oct 2009 10:36:58 -0400 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n9MEaaii026416; Thu, 22 Oct 2009 10:36:57 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Thu, 22 Oct 2009 16:36:30 +0200 Message-Id: <08013037da092ef0ab3cc1dd63da631366450042.1256221009.git.quintela@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: [Qemu-devel] [PATCH 17/20] 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 {