From patchwork Thu Feb 13 13:27:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 3645391 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BBF969F334 for ; Thu, 13 Feb 2014 13:49:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EDB5F201B4 for ; Thu, 13 Feb 2014 13:49:28 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 2269220179 for ; Thu, 13 Feb 2014 13:49:28 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5D715FAD19; Thu, 13 Feb 2014 05:49:26 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-ea0-f181.google.com (mail-ea0-f181.google.com [209.85.215.181]) by gabe.freedesktop.org (Postfix) with ESMTP id DC45BFB0FD for ; Thu, 13 Feb 2014 05:49:22 -0800 (PST) Received: by mail-ea0-f181.google.com with SMTP id k10so2915981eaj.40 for ; Thu, 13 Feb 2014 05:49:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=+mqazTc9UytVImHg+6tqHDVaayryf1rBa2NK74ZgRhg=; b=D4Y5kF4tfDVey5tveONIOJ6RQ0dv6mRJa+2VeiQZaDi/Cj0grukfdMxrMvRLWKwu9s gJTnYiV8tlDqmeMdCCtrVzbZHf6lbzryMNEpb/oeooC3C2oa49qgl31zJmNyQPUW0qKN kqXEWBwmpkpnescQB6+IXMAnvsp4EoiBqOz1Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=+mqazTc9UytVImHg+6tqHDVaayryf1rBa2NK74ZgRhg=; b=hw0rchuh769h76Rqr5Zz8hKZiBGVKMtylJEPGyIxElp9Jtf98nDY51VkyKwxYTb94x vdpHu8P9Efnf6NRyeirXyDvypyDAwVFZKgI5+gIx6wLEq9pL9ZtH4QSB5Ts3PdrXXIIL 5r44VsiCnk7KcEsEeCRgDLTcVPLadVbWIZIy3pTI2MGuwvfWcrA/MZW93KcAkW+x5j4g cTRCdvQBwOKBdbbyQZY7KooXtCGQr+Qav+pLPl27q3UZfHTlYv2WxWziTQOSEHwF7XYX kpEAfZCsnN74moyNoYJDcxdlBKCJHkeqdzj/W8al3umjZDff+283YoPYa70IZHWJ1snZ I4yQ== X-Gm-Message-State: ALoCoQn9GqkLafwJYNr46K9B00JNevmeqjuQQmpBdBUTtJY2By8vBquiWtZfupKrfznd//hRKgLa X-Received: by 10.14.246.68 with SMTP id p44mr2074170eer.72.1392299361892; Thu, 13 Feb 2014 05:49:21 -0800 (PST) Received: from wespe.ffwll.local (84-73-67-144.dclient.hispeed.ch. [84.73.67.144]) by mx.google.com with ESMTPSA id q44sm7207113eez.1.2014.02.13.05.49.20 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Feb 2014 05:49:21 -0800 (PST) From: Daniel Vetter To: Intel Graphics Development Date: Thu, 13 Feb 2014 14:27:57 +0100 Message-Id: <1392298077-23293-3-git-send-email-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1392298077-23293-1-git-send-email-daniel.vetter@ffwll.ch> References: <1392298077-23293-1-git-send-email-daniel.vetter@ffwll.ch> Cc: Daniel Vetter Subject: [Intel-gfx] [PATCH 3/3] tests/kms_flip: use igt logging X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Daniel Vetter --- tests/kms_flip.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/kms_flip.c b/tests/kms_flip.c index c397c9049d82..6b448be1267e 100644 --- a/tests/kms_flip.c +++ b/tests/kms_flip.c @@ -862,7 +862,7 @@ static unsigned int run_test_step(struct test_output *o) if (o->flags & TEST_DPMS) set_dpms(o, DRM_MODE_DPMS_ON); - printf("."); fflush(stdout); + igt_log("."); fflush(stdout); if (do_flip && (o->flags & TEST_HANG)) { handle = gem_create(drm_fd, 4096); @@ -1218,7 +1218,7 @@ static void run_test_on_crtc_set(struct test_output *o, int *crtc_idxs, last_connector = o->kconnector[0]; - fprintf(stdout, "Beginning %s\n", test_name); + igt_log("Beginning %s\n", test_name); if (o->flags & TEST_PAN) o->fb_width *= 2; @@ -1284,7 +1284,7 @@ static void run_test_on_crtc_set(struct test_output *o, int *crtc_idxs, if (o->flags & TEST_VBLANK) check_final_state(o, &o->vblank_state, elapsed); - fprintf(stdout, "\n%s: PASSED\n\n", test_name); + igt_log("\n%s: PASSED\n\n", test_name); out: kmstest_remove_fb(drm_fd, &o->fb_info[2]); @@ -1429,7 +1429,7 @@ static void get_timestamp_format(void) ret = drmGetCap(drm_fd, DRM_CAP_TIMESTAMP_MONOTONIC, &cap_mono); igt_assert(ret == 0 || errno == EINVAL); monotonic_timestamp = ret == 0 && cap_mono == 1; - printf("Using %s timestamps\n", + igt_log("Using %s timestamps\n", monotonic_timestamp ? "monotonic" : "real"); }