From patchwork Mon Dec 19 14:23:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siddh Raman Pant X-Patchwork-Id: 34561 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp2418383wrn; Mon, 19 Dec 2022 06:25:37 -0800 (PST) X-Google-Smtp-Source: AMrXdXvic+EU+IXEQ1Z1z7rN1b1+vD89DkaV0L7Zm0hjThAZTH/tU+segViGmCaVvNjJ4F1i72j9 X-Received: by 2002:a05:6a20:1bd5:b0:a9:fddb:9eab with SMTP id cv21-20020a056a201bd500b000a9fddb9eabmr10713156pzb.41.1671459937554; Mon, 19 Dec 2022 06:25:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1671459937; cv=pass; d=google.com; s=arc-20160816; b=T/YNs+hMB5swcXegptfKNB6gxbGd9eZZ8XIDwDs74/ZoWHCzOwXrDUh36vpTeq0CuI BxhE/B1c19Uxy6iJeZ3uv5FJgOg9XoJjmV5u0rZDjMTGogaRS2QC1S0fvutveargrx8Q Z49C1oAjepn+B3JJYr04FSzUpS6n5M8cktDioPI4dBUeBa45Ku8RNSSIglWv2wtmqXzQ j0WOAgwf//cG9cNdz1D7mmmwDJRzDexsWJ772oAx/qrHKd9iZPoOycBbn2tWqju89eR6 ATPFJQ6WXjDVQa/Jsfoq2ZGce65oJiu+zUi6z+/7ovI5gr0tvSTHWG2zPWNh4cnx0q2b I/ug== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :subject:message-id:cc:to:from:dkim-signature; bh=/KkACYHujfaGKX6lGYzfdfF8MvLQer0ZrR0Xvcz+8Pg=; b=USU2kETMS11YGBNJ9qFIgXOWw3bYs2KJFlb+ZbEu0g5MImYA3B8jmHm5CIgRA3u/76 SuZv6odxpK8EXDy8aYV8HTCaQYYwtn0mrWMcIAZdvJof7YM1C8bxv+S7x08gqoPwObcm RksFWB6AyJTui/ftbMVLMmyxhwGZdYaWP2RPvpLuoM09G9mZBHBcw1hKTTeKYagf0XoC sd7TyrAhphAU+1fsQgqEvZ2f2YmY2ZAIRkNDp6V1frvTjVVNHXBcsTANvwLgAtYwENXy kRio/Ew7AQCgRe7Mzpz8sZswB62P1ZLNkLnb3eO9DZPgKKiMuwAKdL8rRl+dsGTO+zA8 /PbA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@siddh.me header.s=zmail header.b=qB4uFp3H; arc=pass (i=1 spf=pass spfdomain=siddh.me dkim=pass dkdomain=siddh.me dmarc=pass fromdomain=siddh.me>); 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=REJECT sp=REJECT dis=NONE) header.from=siddh.me Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h65-20020a636c44000000b00478b13ff34bsi11235118pgc.419.2022.12.19.06.25.24; Mon, 19 Dec 2022 06:25:37 -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=@siddh.me header.s=zmail header.b=qB4uFp3H; arc=pass (i=1 spf=pass spfdomain=siddh.me dkim=pass dkdomain=siddh.me dmarc=pass fromdomain=siddh.me>); 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=REJECT sp=REJECT dis=NONE) header.from=siddh.me Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231631AbiLSOYV (ORCPT + 99 others); Mon, 19 Dec 2022 09:24:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230373AbiLSOYQ (ORCPT ); Mon, 19 Dec 2022 09:24:16 -0500 Received: from sender-of-o50.zoho.in (sender-of-o50.zoho.in [103.117.158.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DBA12BF6 for ; Mon, 19 Dec 2022 06:24:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671459814; cv=none; d=zohomail.in; s=zohoarc; b=acZ1fov4ki9u2AnkKuWBzsGnuiDOCWbHLX4PdhHmIH2kGT/Gr9pjQGOFU5UwWtQkKPFYm+Q49escKKx3H2yYY/S9Q1e/LBn5IdxDXPiyA4zLcTjFvl0BiQo20zvTlw5eRRr5w5Kn9I8SWWKK7jsLxe4A0Z5tnsTBIriZ3o35ueE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.in; s=zohoarc; t=1671459814; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Subject:To; bh=/KkACYHujfaGKX6lGYzfdfF8MvLQer0ZrR0Xvcz+8Pg=; b=G1PZhlnGUFJQfIXR3sUFFDrxr31/MdjOB6zp4QzztXRMLAdSru3jLaSO+wG9eEovnFA0UBfCyRbwIXjI9rMyEHFU6Nn+Gvi8qjd9rJWyuWUd8sMZjXnQ/GsUMBwHdZIFbj1c760h6Y/bJ5YrE587F5hYhmiJFdPMrCcv+vgcjX8= ARC-Authentication-Results: i=1; mx.zohomail.in; dkim=pass header.i=siddh.me; spf=pass smtp.mailfrom=code@siddh.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1671459814; s=zmail; d=siddh.me; i=code@siddh.me; h=From:From:To:To:Cc:Cc:Message-ID:Subject:Subject:Date:Date:MIME-Version:Content-Transfer-Encoding:Content-Type:Message-Id:Reply-To; bh=/KkACYHujfaGKX6lGYzfdfF8MvLQer0ZrR0Xvcz+8Pg=; b=qB4uFp3H3gNfY41OgmzaL/Y9TOCV0FdF20zOKObIIaWaEK3W9aYspuPROiXBdgIy brEir+1l1y+CFJfptk5qaGTnWwQpbDNeD1xNtenE6SgimLLnsf8J+jh94gkp9Xl49kz coV4kP9qKLKtpx18WSO88sYFuOKhQka/ea8chAgs= Received: from kampyooter.. (110.226.31.37 [110.226.31.37]) by mx.zoho.in with SMTPS id 1671459813592928.3801402610421; Mon, 19 Dec 2022 19:53:33 +0530 (IST) From: Siddh Raman Pant To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter Cc: dri-devel , linux-kernel Message-ID: <20221219142319.79827-1-code@siddh.me> Subject: [PATCH] drm: Replace DRM_INFO() with pr_info() Date: Mon, 19 Dec 2022 19:53:19 +0530 X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-ZohoMailClient: External X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752652775716325014?= X-GMAIL-MSGID: =?utf-8?q?1752652775716325014?= Line 536 of drm_print.h says DRM_INFO() is deprecated in favor of pr_info(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_client_modeset.c | 2 +- drivers/gpu/drm/drm_connector.c | 8 ++++---- drivers/gpu/drm/drm_drv.c | 10 +++++----- drivers/gpu/drm/drm_edid_load.c | 14 +++++++------- drivers/gpu/drm/drm_pci.c | 2 +- 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/drivers/gpu/drm/drm_client_modeset.c b/drivers/gpu/drm/drm_client_modeset.c index bbc535cc50dd..2e2891614c58 100644 --- a/drivers/gpu/drm/drm_client_modeset.c +++ b/drivers/gpu/drm/drm_client_modeset.c @@ -335,7 +335,7 @@ static bool drm_client_target_cloned(struct drm_device *dev, DRM_DEBUG_KMS("can clone using 1024x768\n"); return true; } - DRM_INFO("kms: can't enable cloning when we probably wanted to.\n"); + pr_info("[drm] kms: can't enable cloning when we probably wanted to.\n"); return false; } diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c index 61c29ce74b03..26a03b70e2c6 100644 --- a/drivers/gpu/drm/drm_connector.c +++ b/drivers/gpu/drm/drm_connector.c @@ -165,14 +165,14 @@ static void drm_connector_get_cmdline_mode(struct drm_connector *connector) return; if (mode->force) { - DRM_INFO("forcing %s connector %s\n", connector->name, - drm_get_connector_force_name(mode->force)); + pr_info("[drm] forcing %s connector %s\n", connector->name, + drm_get_connector_force_name(mode->force)); connector->force = mode->force; } if (mode->panel_orientation != DRM_MODE_PANEL_ORIENTATION_UNKNOWN) { - DRM_INFO("cmdline forces connector %s panel_orientation to %d\n", - connector->name, mode->panel_orientation); + pr_info("[drm] cmdline forces connector %s panel_orientation to %d\n", + connector->name, mode->panel_orientation); drm_connector_set_panel_orientation(connector, mode->panel_orientation); } diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c index 203bf8d6c34c..1486df097908 100644 --- a/drivers/gpu/drm/drm_drv.c +++ b/drivers/gpu/drm/drm_drv.c @@ -898,11 +898,11 @@ int drm_dev_register(struct drm_device *dev, unsigned long flags) if (drm_core_check_feature(dev, DRIVER_MODESET)) drm_modeset_register_all(dev); - DRM_INFO("Initialized %s %d.%d.%d %s for %s on minor %d\n", - driver->name, driver->major, driver->minor, - driver->patchlevel, driver->date, - dev->dev ? dev_name(dev->dev) : "virtual device", - dev->primary->index); + pr_info("[drm] Initialized %s %d.%d.%d %s for %s on minor %d\n", + driver->name, driver->major, driver->minor, + driver->patchlevel, driver->date, + dev->dev ? dev_name(dev->dev) : "virtual device", + dev->primary->index); goto out_unlock; diff --git a/drivers/gpu/drm/drm_edid_load.c b/drivers/gpu/drm/drm_edid_load.c index 37d8ba3ddb46..d3cb198380c5 100644 --- a/drivers/gpu/drm/drm_edid_load.c +++ b/drivers/gpu/drm/drm_edid_load.c @@ -242,9 +242,9 @@ static void *edid_load(struct drm_connector *connector, const char *name, u8 *new_edid; edid[EDID_LENGTH-1] += edid[0x7e] - valid_extensions; - DRM_INFO("Found %d valid extensions instead of %d in EDID data " - "\"%s\" for connector \"%s\"\n", valid_extensions, - edid[0x7e], name, connector_name); + pr_info("[drm] Found %d valid extensions instead of %d in EDID data " + "\"%s\" for connector \"%s\"\n", valid_extensions, + edid[0x7e], name, connector_name); edid[0x7e] = valid_extensions; new_edid = krealloc(edid, (valid_extensions + 1) * EDID_LENGTH, @@ -253,10 +253,10 @@ static void *edid_load(struct drm_connector *connector, const char *name, edid = new_edid; } - DRM_INFO("Got %s EDID base block and %d extension%s from " - "\"%s\" for connector \"%s\"\n", (builtin >= 0) ? "built-in" : - "external", valid_extensions, valid_extensions == 1 ? "" : "s", - name, connector_name); + pr_info("[drm] Got %s EDID base block and %d extension%s from " + "\"%s\" for connector \"%s\"\n", (builtin >= 0) ? "built-in" : + "external", valid_extensions, valid_extensions == 1 ? "" : "s", + name, connector_name); out: release_firmware(fw); diff --git a/drivers/gpu/drm/drm_pci.c b/drivers/gpu/drm/drm_pci.c index 39d35fc3a43b..94ee194ce927 100644 --- a/drivers/gpu/drm/drm_pci.c +++ b/drivers/gpu/drm/drm_pci.c @@ -262,7 +262,7 @@ void drm_legacy_pci_exit(const struct drm_driver *driver, } mutex_unlock(&legacy_dev_list_lock); } - DRM_INFO("Module unloaded\n"); + pr_info("[drm] Module unloaded\n"); } EXPORT_SYMBOL(drm_legacy_pci_exit);