From patchwork Sun Jun 13 12:15: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: 55416 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 304B21007D2 for ; Sun, 13 Jun 2010 22:17:28 +1000 (EST) Received: from localhost ([127.0.0.1]:45818 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONm7x-0001jK-Fy for incoming@patchwork.ozlabs.org; Sun, 13 Jun 2010 08:17:25 -0400 Received: from [140.186.70.92] (port=44575 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONm6W-0001iz-1C for qemu-devel@nongnu.org; Sun, 13 Jun 2010 08:15:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ONm6U-00031h-AY for qemu-devel@nongnu.org; Sun, 13 Jun 2010 08:15:55 -0400 Received: from fmmailgate02.web.de ([217.72.192.227]:59671) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONm6U-00031G-4Z for qemu-devel@nongnu.org; Sun, 13 Jun 2010 08:15:54 -0400 Received: from smtp01.web.de ( [172.20.0.243]) by fmmailgate02.web.de (Postfix) with ESMTP id 4B2BA16664AAF; Sun, 13 Jun 2010 14:15:53 +0200 (CEST) Received: from [92.74.52.35] (helo=localhost.localdomain) by smtp01.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.110 #4) id 1ONm6T-0004oR-00; Sun, 13 Jun 2010 14:15:53 +0200 From: Jan Kiszka To: Anthony Liguori , qemu-devel@nongnu.org Date: Sun, 13 Jun 2010 14:15:36 +0200 Message-Id: <9fe7afde72462d56038470e10ce29c0a9c74435b.1276431335.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: V01U2FsdGVkX18RuuMcBh6n6QKNFY1BcEXUqdosQXafd8eAFLY+ l4JyGJ80Cb1Z7uXBdyj+qbnOz3rxNpf0XWd40QwHwlTRuR4+Kh HPOgF/zrw= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 Cc: blue Swirl , Jan Kiszka , Paul Brook , Gleb Natapov , Juan Quintela Subject: [Qemu-devel] [PATCH v4 03/13] 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);