Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp295546rwj; Thu, 22 Dec 2022 07:52:39 -0800 (PST) X-Google-Smtp-Source: AMrXdXtkWi74Hcaea21vrtnys+bEZpv1qWPhjeJd/mLsMFV0gZq7NrQEhHz9iWHqAk1zSOoVOy+5 X-Received: by 2002:a17:906:9c96:b0:7c1:6344:843 with SMTP id fj22-20020a1709069c9600b007c163440843mr5001834ejc.6.1671724359667; Thu, 22 Dec 2022 07:52:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1671724359; cv=pass; d=google.com; s=arc-20160816; b=ZCwFGj6Uo1Ie8v6guxvToQCcmqW37ccXAZeJOn7oS6JcLp32ha77xlfpzAhJUtbSk8 Bs6xiUtjUV8R7TUPi7aI2YH+QUVuPhqr34v50pcBiCeW7sN7MIgQxTmLtvwMZsBon2Sz k2fZZQd560GCtTZYBDDElS5Ejch7DkGszQoMLZGc+gWM6Y5Ej/0FNu4qSeE57mTfNeu6 b9tkmajkL3Jwz/YDyOLh26+bQp2lz8V620RCIYCVYy3XxBFTK/8SYhFbrcIG0PvR/6HH ILTOztuNCU2KrD2JcFHqWLD1wl50ux5OVRSPrZinp+IVw+kS3p1KWo1jAJUoEjo86ZTH EaAA== 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 :references:in-reply-to:date:subject:message-id:cc:to:from :dkim-signature; bh=cZpLol3O64MpX9GcARERJaN7Outep6VKOujvjh1UXWE=; b=bYywklbMRd63VGjX4PI5/rHcwch31UHX1VSG8NH1+Mlps1AYFAUt5RXYV0n5lCN7qU np8wep+onKq1VqA6ZP/+Bao9FLalTU2qjDc3je13IWVlx6U4sh9ht5KLqLS36Ng202cX J+Adr8Nns9H/kYhaxW8wMZWQp6m0kVAaFmJDVFoenuwpHSdbu5jpi397SkFcMoEYnhP+ legdUSMQZDYV9UJb+4VeiAXVDqnAdMNWrhOvU/1iQavfTRYG1NbjwUtPHVvvxfqP1D49 eyMVdoNDFgm78xJCV60VPFMxOgibq92rrJxtwgjgKgqbxu1Ayeih5v95rR3/g6hWAAKO qDnQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@siddh.me header.s=zmail header.b=Cem6nmyQ; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wz2-20020a170906fe4200b007adb868f102si727434ejb.476.2022.12.22.07.52.23; Thu, 22 Dec 2022 07:52:39 -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=Cem6nmyQ; 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 S230285AbiLVPlc (ORCPT + 68 others); Thu, 22 Dec 2022 10:41:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230265AbiLVPl2 (ORCPT ); Thu, 22 Dec 2022 10:41:28 -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 8019D12624 for ; Thu, 22 Dec 2022 07:41:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671723648; cv=none; d=zohomail.in; s=zohoarc; b=YUf/aAK+XueTpDbsE5JiQPzpFtG+Dt7G9LQQeYfQkUVTzWdeO9rQKj2sBlo7tBbHTY3YYJmjqLh8sYlJFkCoJGJZgQMihcSF689eSK+LnLsHj+7QBikYhqsfEp9/wWK9sov6Dy0mrMywbgzqn4Gg3bulwKk6lIvMY5WBfCf4lcM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.in; s=zohoarc; t=1671723648; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=cZpLol3O64MpX9GcARERJaN7Outep6VKOujvjh1UXWE=; b=N4bnZENKws2QAnzihKXK5cep8D+vFXC0cCm/Vf0Yb+Jarqmhi2g2wm6T4+Q5Wh33Y1q0kpr56EANcuyvuXRbZsW/y3c59UewBgJG+IsVFhO+nzF2YWuuTFuv3TfITxFouaM29YreeIlLG1fZnL/uWa9honFeAN9KE68KtqbnkbU= 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=1671723648; s=zmail; d=siddh.me; i=code@siddh.me; h=From:From:To:To:Cc:Cc:Message-ID:Subject:Subject:Date:Date:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Content-Type:Message-Id:Reply-To; bh=cZpLol3O64MpX9GcARERJaN7Outep6VKOujvjh1UXWE=; b=Cem6nmyQ30GAesomLEqIANWPXqsBHoii9xI0XyQL72UgMGOz03mMTUb2b7Tag+UQ TNPsY+wdFCYBJYi2WGxg1MrqWc1E5Sjh8LUs98Dtap0LmtOeWQD2RniP50vcIzstygn ZHj1Ku3pH5r20lNstdWW8kmy/dD9d45GF14n6Xds= Received: from kampyooter.. (110.226.31.37 [110.226.31.37]) by mx.zoho.in with SMTPS id 1671723647546491.26266579948185; Thu, 22 Dec 2022 21:10:47 +0530 (IST) From: Siddh Raman Pant To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Simon Ser Cc: dri-devel , linux-kernel Message-ID: Subject: [PATCH v2 1/9] drm: Remove usage of deprecated DRM_INFO Date: Thu, 22 Dec 2022 21:10:35 +0530 X-Mailer: git-send-email 2.35.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Content-Type: text/plain; charset=utf8 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 drm_print.h says DRM_INFO is deprecated. Thus, use newer printing macros drm_info() and pr_info(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_client_modeset.c | 2 +- drivers/gpu/drm/drm_connector.c | 7 ++++--- drivers/gpu/drm/drm_drv.c | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/drm_client_modeset.c b/drivers/gpu/drm/drm_cli= ent_modeset.c index d553e793e673..2b76d4828c5f 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, =09=09DRM_DEBUG_KMS("can clone using 1024x768\n"); =09=09return true; =09} -=09DRM_INFO("kms: can't enable cloning when we probably wanted to.\n"); +=09drm_info(dev, "kms: can't enable cloning when we probably wanted to.\n"= ); =09return false; } =20 diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connecto= r.c index 547356e00341..34c26b2a974e 100644 --- a/drivers/gpu/drm/drm_connector.c +++ b/drivers/gpu/drm/drm_connector.c @@ -165,13 +165,14 @@ static void drm_connector_get_cmdline_mode(struct drm= _connector *connector) =09=09return; =20 =09if (mode->force) { -=09=09DRM_INFO("forcing %s connector %s\n", connector->name, -=09=09=09 drm_get_connector_force_name(mode->force)); +=09=09drm_info(connector->dev, "forcing %s connector %s\n", +=09=09=09 connector->name, drm_get_connector_force_name(mode->force)); =09=09connector->force =3D mode->force; =09} =20 =09if (mode->panel_orientation !=3D DRM_MODE_PANEL_ORIENTATION_UNKNOWN) { -=09=09DRM_INFO("cmdline forces connector %s panel_orientation to %d\n", +=09=09drm_info(connector->dev, +=09=09=09 "cmdline forces connector %s panel_orientation to %d\n", =09=09=09 connector->name, mode->panel_orientation); =09=09drm_connector_set_panel_orientation(connector, =09=09=09=09=09=09 mode->panel_orientation); diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c index 73b845a75d52..bc98e4bcf2c1 100644 --- a/drivers/gpu/drm/drm_drv.c +++ b/drivers/gpu/drm/drm_drv.c @@ -938,7 +938,7 @@ int drm_dev_register(struct drm_device *dev, unsigned l= ong flags) =09if (drm_core_check_feature(dev, DRIVER_MODESET)) =09=09drm_modeset_register_all(dev); =20 -=09DRM_INFO("Initialized %s %d.%d.%d %s for %s on minor %d\n", +=09drm_info(dev, "Initialized %s %d.%d.%d %s for %s on minor %d\n", =09=09 driver->name, driver->major, driver->minor, =09=09 driver->patchlevel, driver->date, =09=09 dev->dev ? dev_name(dev->dev) : "virtual device", --=20 2.35.1