Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp5452937rwj; Wed, 21 Dec 2022 02:55:48 -0800 (PST) X-Google-Smtp-Source: AMrXdXu19nqVj2BbRP5O8o2+jJCItRD6kByTSzMT5v5CV29ZPDX/BS9TzLN+RhvJyBX867wrPWUe X-Received: by 2002:a17:906:d8ac:b0:7bc:9a78:bc3a with SMTP id qc12-20020a170906d8ac00b007bc9a78bc3amr883712ejb.68.1671620148744; Wed, 21 Dec 2022 02:55:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671620148; cv=none; d=google.com; s=arc-20160816; b=LZ2uv7ObN1C1GWdJvpP+4Dj8r5M1oWsdOxJFhdkQQSN9PY1DmF/oni6VkIQY0tEags 2f/G3wZut+GvaRAyd9V0eoGm8463P7ozsNqyesR9yQub7szUkkgH1DJ+20d8bS53cZa2 YzONR/tH5sRSjVVmCCmt8Lwxv/IgZhN7jOntLWoCqU1V93xY6tC1Za4SXJkHUCSDx8CB ekPGyTDD4bfo1IRHT9KvrPnmw9m/Ti8WzhYxb4x/27C6KdYD4GFkFvwxDQREWxzfrJxr XcBhkJ3VT1XV8+8Z2vpnNtzi4q1sVJ+dkfkhpUjMKXGd5L73AbApp9EyD1i2XTjubsbW v9CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :organization:in-reply-to:subject:cc:to:from:dkim-signature; bh=mIL07K9bR4CYHfGaEBcdM1kwFjosF2k3TfVuibT4WAg=; b=g6Fjp5zyL3HI31ysjhnvSy+0yrIRNCHFujMOTcHMsOz1CUVWJbXZ+0QMYXJI76+BLc hZ2B4kn6Jm4x7ssn6ijTIOGZR0GiCjjsmxIzhc6RkC2oo8wZ36889Sv9TUrjKnN+9gxh j8tsxHBCJFE3gy0hxBNF6XrRNX+P//+WS01SdtCmuIi2zAIJ4O83FCPvnL8VLtLPuUK4 HEEJt6RwtP3myO6bpMiRkgnt7Iayj04otpjN/UdbE54J/lmnm7AuLXBNcHJSSVkB4CAf Lmi1DzdCqFmE1POUseBkoBhLQrDuRHl0iV0PmPdvY3i4Dhst1gzCbTclKgg+AsSRl5Yp ZFzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Xu4rtUYB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y9-20020a1709060a8900b007aea5ae3956si10188012ejf.820.2022.12.21.02.55.32; Wed, 21 Dec 2022 02:55:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Xu4rtUYB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234749AbiLUKDx (ORCPT + 69 others); Wed, 21 Dec 2022 05:03:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234618AbiLUKCb (ORCPT ); Wed, 21 Dec 2022 05:02:31 -0500 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C76CA1A3AC for ; Wed, 21 Dec 2022 02:00:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1671616857; x=1703152857; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=XhLkn6n9p/f7xIIPf1YnYDFtjYbxUaTiK8257ypo3Zw=; b=Xu4rtUYBWM8F7YGsEfsA6HVbqzMHcesRj8/Arvxz1yygUKH782axuITT K7fw/LDVtUP62oUhLZhQJNbwwwEDblu1G7BYv/sP/r2G5JyCQ/UO/aFJG Mw/SMD2m0mSu8k54dBVTxsP94TTLWYnPeidnrRiAfr/ZRDcZ1H1YZ4/9f QRffuf2AVZJbY0Tl097+yNHMFLg9BfGWYZ0K6CcTN4R0n50jmRQy/a12Y eKFNkePhXAlimASW16zzPJbcso1Szg34O2//qXtC9WXOeE/7gYeXiJL0H hJQTz46Pnr1exIiIGnTRpC9/0Z1UdEKUCKWcbDWKhQTsVk/ToyxHAlBlQ Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10567"; a="382061091" X-IronPort-AV: E=Sophos;i="5.96,262,1665471600"; d="scan'208";a="382061091" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Dec 2022 02:00:53 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10567"; a="719892682" X-IronPort-AV: E=Sophos;i="5.96,262,1665471600"; d="scan'208";a="719892682" Received: from jorgeblx-mobl2.ger.corp.intel.com (HELO localhost) ([10.252.46.119]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Dec 2022 02:00:50 -0800 From: Jani Nikula To: Siddh Raman Pant , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter Cc: linux-kernel , dri-devel , Jim Cromie Subject: Re: [PATCH 06/10] drm: Remove usage of deprecated DRM_DEBUG_DRIVER In-Reply-To: <4d1acd84e914bafe491cfb42e7adab32d41ca0ab.1671566741.git.code@siddh.me> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <4d1acd84e914bafe491cfb42e7adab32d41ca0ab.1671566741.git.code@siddh.me> Date: Wed, 21 Dec 2022 12:00:48 +0200 Message-ID: <877cyl2i0f.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 21 Dec 2022, Siddh Raman Pant wrote: > drm_print.h says DRM_DEBUG_DRIVER is deprecated. > Thus, use newer drm_dbg_driver(). > > Also fix the deprecation comment in drm_print.h which > mentions drm_dbg() instead of drm_dbg_driver(). > > Signed-off-by: Siddh Raman Pant > --- > drivers/gpu/drm/drm_mipi_dbi.c | 10 +++++----- > include/drm/drm_print.h | 2 +- > 2 files changed, 6 insertions(+), 6 deletions(-) > > diff --git a/drivers/gpu/drm/drm_mipi_dbi.c b/drivers/gpu/drm/drm_mipi_dbi.c > index 24af507bb687..6ad399f6ab03 100644 > --- a/drivers/gpu/drm/drm_mipi_dbi.c > +++ b/drivers/gpu/drm/drm_mipi_dbi.c > @@ -69,11 +69,11 @@ > #define MIPI_DBI_DEBUG_COMMAND(cmd, data, len) \ > ({ \ > if (!len) \ > - DRM_DEBUG_DRIVER("cmd=%02x\n", cmd); \ > + drm_dbg_driver(NULL, "cmd=%02x\n", cmd); \ > else if (len <= 32) \ > - DRM_DEBUG_DRIVER("cmd=%02x, par=%*ph\n", cmd, (int)len, data);\ > + drm_dbg_driver(NULL, "cmd=%02x, par=%*ph\n", cmd, (int)len, data);\ > else \ > - DRM_DEBUG_DRIVER("cmd=%02x, len=%zu\n", cmd, len); \ > + drm_dbg_driver(NULL, "cmd=%02x, len=%zu\n", cmd, len); \ > }) > > static const u8 mipi_dbi_dcs_read_commands[] = { > @@ -632,7 +632,7 @@ bool mipi_dbi_display_is_on(struct mipi_dbi *dbi) > DCS_POWER_MODE_DISPLAY_NORMAL_MODE | DCS_POWER_MODE_SLEEP_MODE)) > return false; > > - DRM_DEBUG_DRIVER("Display is ON\n"); > + drm_dbg_driver(NULL, "Display is ON\n"); > > return true; > } > @@ -1168,7 +1168,7 @@ int mipi_dbi_spi_init(struct spi_device *spi, struct mipi_dbi *dbi, > > mutex_init(&dbi->cmdlock); > > - DRM_DEBUG_DRIVER("SPI speed: %uMHz\n", spi->max_speed_hz / 1000000); > + drm_dbg_driver(NULL, "SPI speed: %uMHz\n", spi->max_speed_hz / 1000000); > > return 0; > } > diff --git a/include/drm/drm_print.h b/include/drm/drm_print.h > index 53702d830291..10261faec8b6 100644 > --- a/include/drm/drm_print.h > +++ b/include/drm/drm_print.h > @@ -614,7 +614,7 @@ void __drm_err(const char *format, ...); > #define DRM_DEBUG(fmt, ...) \ > __drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__) > > -/* NOTE: this is deprecated in favor of drm_dbg(NULL, ...). */ > +/* NOTE: this is deprecated in favor of drm_dbg_driver(NULL, ...). */ Way back the idea was to make the shorter drm_dbg() the driver debug, and drm_dbg_core() the drm core debug, because the former vastly outnumbers the the latter. I don't know if that changed with the dyndbg stuff. BR, Jani. > #define DRM_DEBUG_DRIVER(fmt, ...) \ > __drm_dbg(DRM_UT_DRIVER, fmt, ##__VA_ARGS__) -- Jani Nikula, Intel Open Source Graphics Center