From patchwork Tue Dec 6 18:57:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tvrtko Ursulin X-Patchwork-Id: 9463671 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 C652160459 for ; Wed, 7 Dec 2016 00:55:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B79C8284D9 for ; Wed, 7 Dec 2016 00:55:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AC96F284F2; Wed, 7 Dec 2016 00:55:06 +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 817C1284D9 for ; Wed, 7 Dec 2016 00:55:06 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1FD666E50A; Wed, 7 Dec 2016 00:54:48 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wj0-x244.google.com (mail-wj0-x244.google.com [IPv6:2a00:1450:400c:c01::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id F2AF66E40F for ; Tue, 6 Dec 2016 18:58:17 +0000 (UTC) Received: by mail-wj0-x244.google.com with SMTP id xy5so45565981wjc.1 for ; Tue, 06 Dec 2016 10:58:17 -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=NXxLaE5clR8jf7wqfq9uy9oKfd1JArMyWk+9+616zDs=; b=pPfpmqiGKA0NjiLIUbXcnzRxxAVi8wEATSQ8MghZAva1+I0GvMLpTELtz99zuOZLS0 osJuXqdcAJLPA17QYR5W9arxGZefIfdESk6o73lK/e0ibSg1SO+kF7TnoRY0qw4h+zf2 HS4rtOLF4BnfKkrLR7p631hVmVYUmqcQebX8p5kML42XUKx/PBebJhfvjuNM2h9eLUU+ aafMPPzUat0FWaiIKpX+tqdW6grZEa9CANFHRshfCwyYzruxt/V2aK0iGAJqX6AGllkZ Bl6sKw+kg2CVVsSOjv8YMHbEJfWy6iTxDuLRFz9fHc4DTTccdC4rGmVHCEQvqyiFZwOg iGRQ== 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=NXxLaE5clR8jf7wqfq9uy9oKfd1JArMyWk+9+616zDs=; b=iZhy+iin3Ofpl9e8egK43dkLZyIMP8+bQ8smaK6YiUsYcyCJDVl3cIxPD0skM/9AYo I1eoSbe68rhZc3iBYIVjlaEW6YHTw3Bf7imZpS0EjajJEB/ASN7HOLzhAJBbmFOAFpPR T+FvOVMGwaIXzxSMgp5c1ZKw/XbHxqJT343MZmNUwmn5J9aCvqQ1aL1lMJhVnNCnj+q+ eYddgP0qNVX0CHSJQkvsP35KsepZ6g0KuBSqKgXG91F1vfUor5H+BjlBpa+fidn2+At4 FihgZzXyY/oahJVmYXqFHL1bPZwAIniy+Xmj4mh7VO+1WzlShqfF8O2ybyhWTUOBg0w0 aqzw== X-Gm-Message-State: AKaTC02WNRWV/g9gUQXOf7UudDMJzoxBUCwVs218EcBrTpnwP55iKkFt7c1qPhdZ0jP6vw== X-Received: by 10.194.55.199 with SMTP id u7mr55392332wjp.72.1481050696312; Tue, 06 Dec 2016 10:58:16 -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.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Dec 2016 10:58:15 -0800 (PST) From: Tvrtko Ursulin X-Google-Original-From: Tvrtko Ursulin To: Intel-gfx@lists.freedesktop.org Subject: [RFC 1/5] drm/i915: Give our log messages our name Date: Tue, 6 Dec 2016 18:57:57 +0000 Message-Id: <1481050681-23416-2-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 Define DRM_NAME to i915 so that the log messages we output change from: [drm] RC6 on to: [i915] RC6 on Since I wasn't around in the beginning of DRM I wonder whether that was the intended purpose of DRM_NAME or if it was something else. Today it looks a bit messy with it being used by both macros and core DRM helpers, like drm_dev_printk and drm_printk, meaning that this change only affects some and not all log messages. Following patches will try to correct that as well. Signed-off-by: Tvrtko Ursulin --- include/uapi/drm/i915_drm.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/uapi/drm/i915_drm.h b/include/uapi/drm/i915_drm.h index da32c2f6c3f9..b777a6b7b3dc 100644 --- a/include/uapi/drm/i915_drm.h +++ b/include/uapi/drm/i915_drm.h @@ -29,6 +29,9 @@ #include "drm.h" +#undef DRM_NAME +#define DRM_NAME "i915" + #if defined(__cplusplus) extern "C" { #endif