Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp609713ybl; Wed, 8 Jan 2020 02:56:59 -0800 (PST) X-Google-Smtp-Source: APXvYqxnZXMlPIrb5fSIc0fJZEbkNCAf43uTKnLfALD3zaEjDfPr91ZTQ1dcR8qg8cDjifbIw4Bf X-Received: by 2002:a9d:4805:: with SMTP id c5mr3756610otf.292.1578481019084; Wed, 08 Jan 2020 02:56:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578481019; cv=none; d=google.com; s=arc-20160816; b=KaEnxrUgctFX59nEXHRUGY8CSwTXuB12fUQIeUXJb1gXg6N+AjUXnSK0EANsmkbHwQ fiqQ9T31gQjXAwuol2AsToA5bB5Tb/nR/h4xX9Pb/xYxdTHj/8YNo0vkFFPCsKcGPvL2 ffcGFzqacBH8ooZb15zrLZsj2ItM8a3GAnlaC73K3GmtCQiRN1nR7HyR7f/Sbg16cD1+ kyLAfdr8ihnSlZrvSgPsqoIL7KPxOKrO5pBamEzg9fnNOFE6Kp4SXIa6o7s8U9H/1Qdb 79L7DnOIkI3qBC6QjQLytvpmverS20ZSB5pAYZ+/ki2BGklNEG5JivQ5iHYnfqRrw0pJ su2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :organization:in-reply-to:subject:cc:to:from; bh=AuNNvtnz9aK3lDQfsUVaE3i+/my7S/3697Ql37hCO1A=; b=OGqWhrOp727wtF978/BuhOne2hjmhmV2m49tWliInXXDfxm5dKtItJd36B/mtWt6k/ nbxxeF4q/ulxXZPbUa9eknOby2/RbH0ykKSRqHbhsrPWz7eTkRhrbP1ACmkp/3v3K7+4 I5KsE0mIUnVe+cBTe9kwyQWni9F3nlJGQsNYQgQVeovWjmPAyoEEmvuJBCAoLMYvR0Jt x1T0ku8Yq8+KIeC3vP78pWwc2wVWc6JgnY3XoB+8/U67vGDMqgOC9Ygg99l3cgj3XW1+ 4oeJd1R2nepou1GP9xh73yI5lEpmpUYPu4kPjPJJxp9j7G9JrsCs+q1sYbymbmybuU0x rvpA== 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 c2si1669082oto.207.2020.01.08.02.56.46; Wed, 08 Jan 2020 02:56:59 -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 S1726830AbgAHJkq (ORCPT + 99 others); Wed, 8 Jan 2020 04:40:46 -0500 Received: from mga17.intel.com ([192.55.52.151]:42310 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726107AbgAHJkq (ORCPT ); Wed, 8 Jan 2020 04:40:46 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Jan 2020 01:40:46 -0800 X-IronPort-AV: E=Sophos;i="5.69,409,1571727600"; d="scan'208";a="222891061" Received: from jnikula-mobl3.fi.intel.com (HELO localhost) ([10.237.66.161]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Jan 2020 01:40:43 -0800 From: Jani Nikula To: Joonas Lahtinen , Wambui Karuga , airlied@linux.ie, daniel@ffwll.ch, rodrigo.vivi@intel.com Cc: seanpaul@chromium.org, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/5] drm/i915: convert to using the drm_dbg_kms() macro. In-Reply-To: <157847199686.4725.87481257304852182@jlahtine-desk.ger.corp.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <157847199686.4725.87481257304852182@jlahtine-desk.ger.corp.intel.com> Date: Wed, 08 Jan 2020 11:40:40 +0200 Message-ID: <8736cqs2uf.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 08 Jan 2020, Joonas Lahtinen wrote: > 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, ...) I'd rather use the common drm logging macros. I thought about adding i915 specific ones only if the drm device specific logging macros weren't going to be merged. BR, Jani. -- Jani Nikula, Intel Open Source Graphics Center