From patchwork Tue Dec 6 18:58:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tvrtko Ursulin X-Patchwork-Id: 9463675 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 B066A60459 for ; Wed, 7 Dec 2016 00:55:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9F3EA284D9 for ; Wed, 7 Dec 2016 00:55:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 90F37284F2; Wed, 7 Dec 2016 00:55:25 +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.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=unavailable 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 2D3A5284D9 for ; Wed, 7 Dec 2016 00:55:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 122326E4F1; Wed, 7 Dec 2016 00:54:58 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id C65676E414 for ; Tue, 6 Dec 2016 18:58:21 +0000 (UTC) Received: by mail-wm0-x241.google.com with SMTP id m203so23275881wma.3 for ; Tue, 06 Dec 2016 10:58:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ursulin-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=sAD6mvBDz76XsaHVsENk1t+MlhgenU8d+WSRQ0/Ol28=; b=T9IEVb89IgEHcKeh5AAba3fnJmLO6OqdBfJ1fp6/+SM0ObrQHOWCldr5kt+DLckACQ jRf+1y66IOp918MtyQJStl9PAlylePjqZ040VTn2ZSSliHlxlZ9GASBeXragIBd+4gM+ ADbsW0tz1kwOMw8kdETdUcJ5VHRKp4R1Vd4TYpr6bi+UHFifyyJjjqLONrvoSL3XI4zO nSMEMpPKJDgcMf/aLxompwVw1F7yg8M3S9bqg88yJQTSqiWIYcP1sAmPNejFz4p7DLdh 8zrWMxTO+X6q2m4T81QH5WAvZVxHauPaJY1xjy6b/3jRIKaYNRfY/6WD08SBcuFhQA2w 221A== 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=sAD6mvBDz76XsaHVsENk1t+MlhgenU8d+WSRQ0/Ol28=; b=Ybv7N31uIFgCBZvCewTiEHpmIGb44alCsFopyv7V9CgNb/kgJZQwrjFkfOz+ewhsNP w2SGBsHkvivjurEWdPrIJrH5wjl73WJtDuqwXnAuBUSBh/IOZrCPfbLeED8bFm9Cf8wn 2uqJjwF6pobP2erzU9H/pEPqn+0Nhs0eg2mZdVes+PzK1JGnA/YIhjZtpBRdnylTKX5X VpYzDNvb0bTTfyKdKahAWuCtWZLvPxe/CVcsp4GzMh3yxDDYc52iPQG/2//67xEbgURV yYeyezueDrJh+2qzrfA+KNtCG4pvB+6f6J/Jc55fdopc+QHmFnvuKm3WCk2UTJIWOEoM iOaw== X-Gm-Message-State: AKaTC00EqDe8r/ZwyX6De1aN19vFVgI4rpi3CJsY0OlAFvPt/XklsUy4mFzz3R1HuIVEXw== X-Received: by 10.28.214.84 with SMTP id n81mr54112wmg.120.1481050699838; Tue, 06 Dec 2016 10:58:19 -0800 (PST) Received: from t460p.intel ([2a02:c7d:9bd6:b000:f37e:1e07:a7d8:46cd]) by smtp.gmail.com with ESMTPSA id r7sm27173177wjp.43.2016.12.06.10.58.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Dec 2016 10:58:19 -0800 (PST) From: Tvrtko Ursulin X-Google-Original-From: Tvrtko Ursulin To: Intel-gfx@lists.freedesktop.org Subject: [RFC 5/5] drm: Do not log driver prefix in debug messages Date: Tue, 6 Dec 2016 18:58:01 +0000 Message-Id: <1481050681-23416-6-git-send-email-tvrtko.ursulin@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1481050681-23416-1-git-send-email-tvrtko.ursulin@linux.intel.com> References: <1481050681-23416-1-git-send-email-tvrtko.ursulin@linux.intel.com> X-Mailman-Approved-At: Wed, 07 Dec 2016 00:54:15 +0000 Cc: Tvrtko Ursulin , dri-devel@lists.freedesktop.org, tursulin@ursulin.net X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Tvrtko Ursulin Driver prefix is a bit redundant in debug messages. If we choose not to log it we change debug messages which used to look like this: [i915:edp_panel_off [i915]] Wait for panel power off time to this: [edp_panel_off [i915]] Wait for panel power off time Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/drm_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c index bda4639c73e4..498beaf8ee8b 100644 --- a/drivers/gpu/drm/drm_drv.c +++ b/drivers/gpu/drm/drm_drv.c @@ -118,8 +118,8 @@ void drm_printk(const char *level, unsigned int category, level, driver, strcmp(level, KERN_ERR) == 0 ? " *ERROR*" : "", &vaf); else - printk("%s[%s:%ps] %pV", - level, driver, __builtin_return_address(0), &vaf); + printk("%s[%ps] %pV", + level, __builtin_return_address(0), &vaf); va_end(args); }