From patchwork Mon Sep 17 08:47:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peter A. G. Crosthwaite" X-Patchwork-Id: 184319 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 341152C0086 for ; Mon, 17 Sep 2012 18:48:43 +1000 (EST) Received: from localhost ([::1]:50930 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDX0T-00069q-A9 for incoming@patchwork.ozlabs.org; Mon, 17 Sep 2012 04:48:41 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38992) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDX06-0005S8-EK for qemu-devel@nongnu.org; Mon, 17 Sep 2012 04:48:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TDX00-0003vn-I3 for qemu-devel@nongnu.org; Mon, 17 Sep 2012 04:48:18 -0400 Received: from mail-ie0-f173.google.com ([209.85.223.173]:58366) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDX00-0003tn-DU for qemu-devel@nongnu.org; Mon, 17 Sep 2012 04:48:12 -0400 Received: by mail-ie0-f173.google.com with SMTP id c10so8767331ieb.4 for ; Mon, 17 Sep 2012 01:48:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :in-reply-to:references:x-gm-message-state; bh=7DP12JjnTdHo31OS7kLwxxkhhnNgVeVe07HS5/5qraA=; b=V6/XEAGjsm+h2sjcFlSisvjc3SGqotikLRvcyqePn7vWAFQdOAEb4QsjMa8l6Qj07Z CR1yHvXBE37iKUh9RSWFjrKQyTA9opLslTCMdhvflKdnk2kWJ2c0EtfBEWOo1iPLEVsq CpiK2BEpLRk20zl5V0qxlzXSctyq1FrtRvRBgxRoSm5nsV29HmlyAp/5nPzlp+Wcm857 5jONmAGT1P/1HYAbr/m0BZyDTVescRvjIsPBrM9PIxeepW5WGclNqjcPl7NKcoSOdJQ5 4eN3r9duskCeKdkFYVggkA+oQVJxiw13MQ0MfIKiFJFuZ8tWrxQQLMgJ58vT/OEWlSx6 CjmA== Received: by 10.42.129.207 with SMTP id r15mr8070892ics.42.1347871691995; Mon, 17 Sep 2012 01:48:11 -0700 (PDT) Received: from localhost ([124.148.20.9]) by mx.google.com with ESMTPS id xm2sm16518448igb.3.2012.09.17.01.48.09 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 17 Sep 2012 01:48:11 -0700 (PDT) From: "Peter A. G. Crosthwaite" To: qemu-devel@nongnu.org, edgar.iglesias@gmail.com Date: Mon, 17 Sep 2012 18:47:32 +1000 Message-Id: X-Mailer: git-send-email 1.7.0.4 In-Reply-To: References: In-Reply-To: References: X-Gm-Message-State: ALoCoQm50HDePGBpw9faLak3lEJGryAPvpI37fYNwaX/fs/wbEznamiMYt3O2XuuHJoBZNbbDnMc X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.223.173 Cc: peter.crosthwaite@petalogix.com, crwulff@gmail.com Subject: [Qemu-devel] [PATCH v1 2/6] xilinx_timer: Send dbg msgs to stderr not stdout X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Peter A. G. Crosthwaite --- hw/xilinx_timer.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/xilinx_timer.c b/hw/xilinx_timer.c index 053ba02..c02e6ca 100644 --- a/hw/xilinx_timer.c +++ b/hw/xilinx_timer.c @@ -119,7 +119,7 @@ timer_read(void *opaque, target_phys_addr_t addr, unsigned int size) break; } - D(printf("%s timer=%d %x=%x\n", __func__, timer, addr * 4, r)); + D(fprintf(stderr, "%s timer=%d %x=%x\n", __func__, timer, addr * 4, r)); return r; } @@ -127,7 +127,7 @@ static void timer_enable(struct xlx_timer *xt) { uint64_t count; - D(printf("%s timer=%d down=%d\n", __func__, + D(fprintf(stderr, "%s timer=%d down=%d\n", __func__, xt->nr, xt->regs[R_TCSR] & TCSR_UDT)); ptimer_stop(xt->ptimer); @@ -152,7 +152,7 @@ timer_write(void *opaque, target_phys_addr_t addr, addr >>= 2; timer = timer_from_addr(addr); xt = &t->timers[timer]; - D(printf("%s addr=%x val=%x (timer=%d off=%d)\n", + D(fprintf(stderr, "%s addr=%x val=%x (timer=%d off=%d)\n", __func__, addr * 4, value, timer, addr & 3)); /* Further decoding to address a specific timers reg. */ addr &= 3; @@ -189,7 +189,7 @@ static void timer_hit(void *opaque) { struct xlx_timer *xt = opaque; struct timerblock *t = xt->parent; - D(printf("%s %d\n", __func__, timer)); + D(fprintf(stderr, "%s %d\n", __func__, timer)); xt->regs[R_TCSR] |= TCSR_TINT; if (xt->regs[R_TCSR] & TCSR_ARHT)