Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp581652ybl; Wed, 8 Jan 2020 02:23:38 -0800 (PST) X-Google-Smtp-Source: APXvYqwrtqLnmgaLSptar/rogOrMoUxV3+xZNGNjgzf7ZoXyKRPAcJObKFzR+4vqFLdOLAuEbfBs X-Received: by 2002:a9d:e83:: with SMTP id 3mr3667782otj.218.1578479018037; Wed, 08 Jan 2020 02:23:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578479018; cv=none; d=google.com; s=arc-20160816; b=zIQzo+aZ3DqgHB0O702751Zymjt+/uo7tL4IzqiYo8/FdjxYnekWcIWNdhac6qIRep r2cEmOtU3AVQXtPHbRjmAi64UPnDymmiNwBMRgzI5JvdYG09pR5gMwuHlm+hYJyUVZSX bYM6jtI3FR/R2C5VIMDgoRTSLnnfakIMWUIoXQM91ZXcQtvv5uFJc1jv6fHWz7jfXO7S JWCT7Q/oQdQ2p+TN1rNeZh1PGK1m2jfrseoW3A76Wwfr6cmb8CTkDMP1UPpBvkpuWYLf gP3vJOkKSWK/BUSiTrM6BmeTsKKYcnZcm8E/mfFWrAIbx4ghLOebn9GlqTJuQkfqyUFi r9kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:date:organization :to:cc:from:subject:references:in-reply-to:content-transfer-encoding :mime-version; bh=MJeont1TscDiZILbG1iRJ5DEHNSFUSz63Nntzszl7Gs=; b=F11UFKSjr3A2zlRa7/bCX9KIU75b02La3Pxolfl3Oj2E/gsHqQY9XE41HXjm42XM1O 7QScdc42AAV5PgfPdMCYzNqKwh4f+kEIEmAsPGSPBldgcKXp9LwRppMpOk5q2agpkQVA vnhiRwu0y2YXHDZTcYDdwor6mvG56EmSdMwQE9scemsM61ho9fkfukpnY2VSTcs/F7CW +njdScS3FkAtnLo+ZSS6OEf2wayWBEeGf+AXdBjU2cqkAt2MMg9dqZ2Yk2dSb0b+UWAo eySOYesYoPjFZsGbpqnrnOhhLLciCZU5aVB73WzvRuuYwcUogXj/0BN7T1hQc31H3dWT v/BQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y26si1642428otk.315.2020.01.08.02.23.25; Wed, 08 Jan 2020 02:23:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727198AbgAHI0m convert rfc822-to-8bit (ORCPT + 99 others); Wed, 8 Jan 2020 03:26:42 -0500 Received: from mga02.intel.com ([134.134.136.20]:50471 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726290AbgAHI0m (ORCPT ); Wed, 8 Jan 2020 03:26:42 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Jan 2020 00:26:42 -0800 X-IronPort-AV: E=Sophos;i="5.69,409,1571727600"; d="scan'208";a="215883541" Received: from jlahtine-desk.ger.corp.intel.com (HELO localhost) ([10.251.84.108]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Jan 2020 00:26:39 -0800 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT In-Reply-To: References: Subject: Re: [PATCH 1/5] drm/i915: convert to using the drm_dbg_kms() macro. From: Joonas Lahtinen Cc: seanpaul@chromium.org, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org To: Wambui Karuga , airlied@linux.ie, daniel@ffwll.ch, jani.nikula@linux.intel.com, rodrigo.vivi@intel.com Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Date: Wed, 08 Jan 2020 10:26:36 +0200 Message-ID: <157847199686.4725.87481257304852182@jlahtine-desk.ger.corp.intel.com> User-Agent: alot/0.8.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Wambui Karuga (2020-01-07 17:13:29) > Convert the use of the DRM_DEBUG_KMS() logging macro to the new struct > drm_device based drm_dbg_kms() logging macro in i915/intel_pch.c. > > Signed-off-by: Wambui Karuga > --- > drivers/gpu/drm/i915/intel_pch.c | 46 +++++++++++++++++--------------- > 1 file changed, 24 insertions(+), 22 deletions(-) > > diff --git a/drivers/gpu/drm/i915/intel_pch.c b/drivers/gpu/drm/i915/intel_pch.c > index 43b68b5fc562..4ed60e1f01db 100644 > --- a/drivers/gpu/drm/i915/intel_pch.c > +++ b/drivers/gpu/drm/i915/intel_pch.c > @@ -12,90 +12,91 @@ intel_pch_type(const struct drm_i915_private *dev_priv, unsigned short id) > { > switch (id) { > case INTEL_PCH_IBX_DEVICE_ID_TYPE: > - DRM_DEBUG_KMS("Found Ibex Peak PCH\n"); > + drm_dbg_kms(&dev_priv->drm, "Found Ibex Peak PCH\n"); Did we at some point consider i915_dbg_kms alias? That would just take dev_priv (or i915, as it's called in newer code). It would shorten many of the statements. i915_dbg_kms(dev_priv, ...) or i915_dbg_kms(i915, ...) Regards, Joonas