From patchwork Fri Sep 27 10:42:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 11164327 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7BE5A912 for ; Fri, 27 Sep 2019 10:42:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 64F9F217F4 for ; Fri, 27 Sep 2019 10:42:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726295AbfI0Kmh (ORCPT ); Fri, 27 Sep 2019 06:42:37 -0400 Received: from foss.arm.com ([217.140.110.172]:48744 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726179AbfI0Kmh (ORCPT ); Fri, 27 Sep 2019 06:42:37 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F31D31596; Fri, 27 Sep 2019 03:42:36 -0700 (PDT) Received: from donnerap.arm.com (donnerap.cambridge.arm.com [10.1.197.44]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 32BE43F534; Fri, 27 Sep 2019 03:42:36 -0700 (PDT) From: Andre Przywara To: Paolo Bonzini , Andrew Jones Cc: kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org Subject: [kvm-unit-tests PATCH 3/6] arm: timer: Split variable output data from test name Date: Fri, 27 Sep 2019 11:42:24 +0100 Message-Id: <20190927104227.253466-4-andre.przywara@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190927104227.253466-1-andre.przywara@arm.com> References: <20190927104227.253466-1-andre.przywara@arm.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org For some tests we mix variable diagnostic output with the test name, which leads to variable test line, confusing some higher level frameworks. Split the output to always use the same test name for a certain test, and put diagnostic output on a separate line using the INFO: tag. Signed-off-by: Andre Przywara Reviewed-by: Andrew Jones --- arm/timer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arm/timer.c b/arm/timer.c index f2f6019..0b808d5 100644 --- a/arm/timer.c +++ b/arm/timer.c @@ -249,7 +249,8 @@ static void test_timer(struct timer_info *info) local_irq_enable(); left = info->read_tval(); report("interrupt received after TVAL/WFI", info->irq_received); - report("timer has expired (%d)", left < 0, left); + report("timer has expired", left < 0); + report_info("TVAL is %d ticks", left); } static void test_vtimer(void)