From patchwork Tue Dec 2 17:15:35 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Wood X-Patchwork-Id: 5421641 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5F018BEEA8 for ; Tue, 2 Dec 2014 17:15:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9EAE52028D for ; Tue, 2 Dec 2014 17:15:47 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id A6B6320266 for ; Tue, 2 Dec 2014 17:15:46 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C0B186F3A7; Tue, 2 Dec 2014 09:15:45 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-ee0-f44.google.com (mail-ee0-f44.google.com [74.125.83.44]) by gabe.freedesktop.org (Postfix) with ESMTP id 4E5D86F314 for ; Tue, 2 Dec 2014 09:15:44 -0800 (PST) Received: by mail-ee0-f44.google.com with SMTP id d49so110223eek.31 for ; Tue, 02 Dec 2014 09:15:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=zRx52fBcGI1GV/lbgduQbwNGtRhIevy7ZEyY9QmiYdo=; b=Xq4boJZ3SAPEE8iA1k9HwGDv9zzzgZLnVu8cogRrXYQawHuokKIwEctSD15lpqQraY pvap0QggEcNJCtEiThwBnHFbxeYEMt0yMOIV2VZXwn1roEPtBSwC1BxRM2thLOMjmzhD URmHHE2J92DHJ3eOwiMNW/Lnymr3seRNlBMWOR00n5OihB3itynJI+8rkBEo3PyYGkSq SPLP7jEVcdK4WSYXEE+IP5KtWCvDehNBTa+C7Y6ZvfQhTTYnvakgBTmF5bHDK7ZqAQFM flN28DvAzNqsEd7wooKeejZeE7jFGmVzO5Qk1ULXF3CP9vtZbwACLHuLuRZ4qA2vddQx UJrw== X-Gm-Message-State: ALoCoQn1Q0VypE5cPnY9hR1jdb9ap0uGFvvg53tWkLvYiRwU4UtDbA1WtYlJVN/aFjSRWRuWE5W6 X-Received: by 10.180.107.193 with SMTP id he1mr92585298wib.27.1417540543593; Tue, 02 Dec 2014 09:15:43 -0800 (PST) Received: from pistachio.icx.intel.com ([83.217.123.106]) by mx.google.com with ESMTPSA id n3sm32725757wjz.21.2014.12.02.09.15.41 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Dec 2014 09:15:42 -0800 (PST) From: Thomas Wood To: intel-gfx@lists.freedesktop.org Date: Tue, 2 Dec 2014 17:15:35 +0000 Message-Id: <1417540539-23069-1-git-send-email-thomas.wood@intel.com> X-Mailer: git-send-email 2.1.0 Subject: [Intel-gfx] [PATCH i-g-t 1/5] lib: share common logging code X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, 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: Thomas Wood --- lib/igt_core.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/lib/igt_core.c b/lib/igt_core.c index 3fd4595..f7763b5 100644 --- a/lib/igt_core.c +++ b/lib/igt_core.c @@ -1433,20 +1433,8 @@ void igt_log(enum igt_log_level level, const char *format, ...) { va_list args; - assert(format); - - if (list_subtests) - return; - - if (igt_log_level > level) - return; - va_start(args, format); - if (level == IGT_LOG_WARN) { - fflush(stdout); - vfprintf(stderr, format, args); - } else - vprintf(format, args); + igt_vlog(level, format, args) va_end(args); }