From patchwork Fri Oct 14 09:56:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jani Nikula X-Patchwork-Id: 9376347 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0625F6075E for ; Fri, 14 Oct 2016 09:56:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EB07A2A5EC for ; Fri, 14 Oct 2016 09:56:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DF2452A5F0; Fri, 14 Oct 2016 09:56:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A7E552A5EC for ; Fri, 14 Oct 2016 09:56:47 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 89FA66E0CC; Fri, 14 Oct 2016 09:56:44 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by gabe.freedesktop.org (Postfix) with ESMTPS id C6EB76E0CC for ; Fri, 14 Oct 2016 09:56:42 +0000 (UTC) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP; 14 Oct 2016 02:56:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,344,1473145200"; d="scan'208";a="772545152" Received: from jnikula-mobl.fi.intel.com (HELO localhost) ([10.237.72.162]) by FMSMGA003.fm.intel.com with ESMTP; 14 Oct 2016 02:56:41 -0700 From: Jani Nikula To: intel-gfx@lists.freedesktop.org Date: Fri, 14 Oct 2016 12:56:39 +0300 Message-Id: <1476438999-24294-1-git-send-email-jani.nikula@intel.com> X-Mailer: git-send-email 2.1.4 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Cc: jani.nikula@intel.com Subject: [Intel-gfx] [i-g-t PATCH] tests: prefix IGT kernel log messages with [IGT] 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-Virus-Scanned: ClamAV using ClamSMTP Make the IGT logging stand out better and easier to grep. Signed-off-by: Jani Nikula --- lib/igt_core.c | 6 +++--- tests/drm_lib.sh | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/igt_core.c b/lib/igt_core.c index 43db4684cab0..9cd5f98d2014 100644 --- a/lib/igt_core.c +++ b/lib/igt_core.c @@ -734,7 +734,7 @@ out: exit(ret == -1 ? 0 : IGT_EXIT_INVALID); if (!list_subtests) { - kmsg(KERN_INFO "%s: executing\n", command_str); + kmsg(KERN_INFO "[IGT] %s: executing\n", command_str); print_version(); oom_adjust_for_doom(); @@ -860,7 +860,7 @@ bool __igt_run_subtest(const char *subtest_name) return false; } - kmsg(KERN_INFO "%s: starting subtest %s\n", command_str, subtest_name); + kmsg(KERN_INFO "[IGT] %s: starting subtest %s\n", command_str, subtest_name); igt_debug("Starting subtest: %s\n", subtest_name); _igt_log_buffer_reset(); @@ -1343,7 +1343,7 @@ void igt_exit(void) } if (command_str) - kmsg(KERN_INFO "%s: exiting, ret=%d\n", + kmsg(KERN_INFO "[IGT] %s: exiting, ret=%d\n", command_str, igt_exitcode); igt_debug("Exiting with status code %d\n", igt_exitcode); diff --git a/tests/drm_lib.sh b/tests/drm_lib.sh index 113da4c7d645..1abc1580b96a 100755 --- a/tests/drm_lib.sh +++ b/tests/drm_lib.sh @@ -20,12 +20,12 @@ kmsg() { finish() { exitcode=$? - kmsg "$KERN_INFO$NAME: exiting, ret=$exitcode" + kmsg "${KERN_INFO}[IGT] $NAME: exiting, ret=$exitcode" exit $exitcode } trap finish EXIT -kmsg "$KERN_INFO$NAME: executing" +kmsg "${KERN_INFO}[IGT] $NAME: executing" skip() { echo "$@"