From patchwork Mon May 24 20:13:36 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 53460 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 5E6B4B7D7F for ; Tue, 25 May 2010 06:23:47 +1000 (EST) Received: from localhost ([127.0.0.1]:56375 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGeBa-0006it-NF for incoming@patchwork.ozlabs.org; Mon, 24 May 2010 16:23:42 -0400 Received: from [140.186.70.92] (port=40889 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGe2P-00017N-EN for qemu-devel@nongnu.org; Mon, 24 May 2010 16:14:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OGe28-0000Cd-GE for qemu-devel@nongnu.org; Mon, 24 May 2010 16:14:13 -0400 Received: from fmmailgate02.web.de ([217.72.192.227]:46544) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGe28-0000C7-9P for qemu-devel@nongnu.org; Mon, 24 May 2010 16:13:56 -0400 Received: from smtp05.web.de ( [172.20.4.166]) by fmmailgate02.web.de (Postfix) with ESMTP id B89FA1627121A; Mon, 24 May 2010 22:13:55 +0200 (CEST) Received: from [88.65.39.229] (helo=localhost.localdomain) by smtp05.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.110 #4) id 1OGe27-0004UY-01; Mon, 24 May 2010 22:13:55 +0200 From: Jan Kiszka To: qemu-devel@nongnu.org Date: Mon, 24 May 2010 22:13:36 +0200 Message-Id: <6de70108aea108e7cf13c5842f2d45bccb21251f.1274732025.git.jan.kiszka@web.de> X-Mailer: git-send-email 1.6.0.2 In-Reply-To: References: In-Reply-To: References: X-Sender: jan.kiszka@web.de X-Provags-ID: V01U2FsdGVkX1/que59xPEtNT10glvSSgcdAYWsbEOQFCITmQgx Ov27SvefQrdu9ogJHZgT/9dY1qtPtBaIfvnos/yMek85UHXS9V CRbHitUYs= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 Cc: blue Swirl , Jan Kiszka , Juan Quintela Subject: [Qemu-devel] [RFT][PATCH 03/15] hpet: Silence warning on write to running main counter 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 From: Jan Kiszka Setting the main counter while the HPET is enabled may not be a good idea of the guest, but it is supported and should, thus, not spam the host console with warnings. Signed-off-by: Jan Kiszka --- hw/hpet.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/hpet.c b/hw/hpet.c index 2836fb0..bcb160b 100644 --- a/hw/hpet.c +++ b/hw/hpet.c @@ -520,7 +520,7 @@ static void hpet_ram_writel(void *opaque, target_phys_addr_t addr, break; case HPET_COUNTER: if (hpet_enabled()) { - printf("qemu: Writing counter while HPET enabled!\n"); + DPRINTF("qemu: Writing counter while HPET enabled!\n"); } s->hpet_counter = (s->hpet_counter & 0xffffffff00000000ULL) | value; @@ -529,7 +529,7 @@ static void hpet_ram_writel(void *opaque, target_phys_addr_t addr, break; case HPET_COUNTER + 4: if (hpet_enabled()) { - printf("qemu: Writing counter while HPET enabled!\n"); + DPRINTF("qemu: Writing counter while HPET enabled!\n"); } s->hpet_counter = (s->hpet_counter & 0xffffffffULL) | (((uint64_t)value) << 32);