From patchwork Tue Nov 22 07:39:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rahul Tanwar X-Patchwork-Id: 24176 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2059333wrr; Mon, 21 Nov 2022 23:41:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf4tHQ4qtKUV/paSa5h83S/2KX+TK+AWOTdkBA9K6aEXiR09nh+xB6t0ReqPW7r5HHPMgVOI X-Received: by 2002:a17:902:9686:b0:189:24b3:c54 with SMTP id n6-20020a170902968600b0018924b30c54mr2635752plp.96.1669102918797; Mon, 21 Nov 2022 23:41:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669102918; cv=none; d=google.com; s=arc-20160816; b=Gqk0psjCHeb4hV6GZUxfy3+PCwJGs3TDr1JNZaTU2OJKhxZTqvjQl74qzXt1RrZQe4 zYwa72FJOx8q1SKKQ96td0M3iOav+LwhH/1BHJoitBHnQStwz/vDtJ4xs4qTT54QHJex lQmWiqLfwK9O9vQPhmdooxtRdg4FtBNPnjuNzDzRD4mwvkwxFHU9qEJWkbRAimjyYmsg BpYmJ3HfGoVuxdIo0AviHYc4XApRgGCjzHhtXo9kiO1i7BLRFs2wrEVM3k6vn9nMIW8f cQ7xWasun/v4FLv6xpOLmf6M7S1yYFzphLGpCA+14NFZ11hh6FG68nWOIXR2UaIAOYvi 19zg== ARC-Message-Signature: i=1; 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:message-id:date:subject:cc:to:from :dkim-signature; bh=XtiwGqXBFxhLlETvxktwt1UqNvSglqTHBPfqfwhsYIM=; b=g8Hxq3pUR3uZDjnlXupLmFRGxqd2YttyhcTCeJns72dZR5ojpMuHbC8/Tr9I8MC9TO xuM6I6w5OYtJYZ3e0wjjAMc5Q5OYrKLQu8TH3GyqYgwlXKLG6JTB5v2ZYQqnd0SNxVql /OBloIBUXwUxDSw/9bgudzu2IsI5sSwKDXZh+pqDl28fO3KKwYhXPRBpl5zp7T0Vs35R 578J5pvTFIZU4aMHpjhiYE43pWlcJQ+Pyz1Y2xgl6KkdO3USLPyrIlH4kbo1AjW9GVHY qLFtd3r3lcoA3CEWuylLtVDkyyooExRTGGiZn2GZkDF2Vt/BV3iSUVbZFzgNApn58k8T gbFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@maxlinear.com header.s=selector header.b=UcP263p6; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=maxlinear.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n6-20020a170902f60600b00188f4d6c28csi13524801plg.167.2022.11.21.23.41.40; Mon, 21 Nov 2022 23:41:58 -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=@maxlinear.com header.s=selector header.b=UcP263p6; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=maxlinear.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232465AbiKVHkf (ORCPT + 99 others); Tue, 22 Nov 2022 02:40:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232429AbiKVHkX (ORCPT ); Tue, 22 Nov 2022 02:40:23 -0500 Received: from us-smtp-delivery-115.mimecast.com (us-smtp-delivery-115.mimecast.com [170.10.129.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A18282F02B for ; Mon, 21 Nov 2022 23:39:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maxlinear.com; s=selector; t=1669102769; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XtiwGqXBFxhLlETvxktwt1UqNvSglqTHBPfqfwhsYIM=; b=UcP263p6N2TG1BS4XSgvYyUErTmv6YA8VCzKnX4jKwyY49R+zQ/dYeYllwvYObWST3djcb XfbT/2DS0pje3R7oCXETGoaeVtF+2/TL5PI34Ay/oUdAQEMuT1g8Wlxu3/pDkoKAEGw6Be cLFSYPK5vFyVIVNgF02U8NCgIhrKvvu8ttMJHfGaAa8ZeBeFAz8kB2EGeobdm6KrCF5OP5 RkAB/2GiBQJND7+XVPsmvm8l2f3b8PKpqazkPmBIx9iyp69gelEG1bYfK3GBQzZdHZ/NsK ccK3XWglzWqjszV23xHAu34VodndVs/7QGBHlCdMoeZu3RbSvGlQxjp9zlZN3g== Received: from mail.maxlinear.com (174-47-1-84.static.ctl.one [174.47.1.84]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id us-mta-403-ZD30hwUhOOCueD0AViRi6g-1; Tue, 22 Nov 2022 02:39:27 -0500 X-MC-Unique: ZD30hwUhOOCueD0AViRi6g-1 Received: from sgsxdev001.isng.phoenix.local (10.226.81.111) by mail.maxlinear.com (10.23.38.119) with Microsoft SMTP Server id 15.1.2375.24; Mon, 21 Nov 2022 23:39:23 -0800 From: Rahul Tanwar To: , , , , , , CC: , , , , Rahul Tanwar Subject: [PATCH v3 3/4] x86/of: Replace printk(KERN_LVL) with pr_lvl() Date: Tue, 22 Nov 2022 15:39:09 +0800 Message-ID: <64a905649accf1b68f03c31a9b6ce205b03c6703.1669100394.git.rtanwar@maxlinear.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: maxlinear.com 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?1750181262037778226?= X-GMAIL-MSGID: =?utf-8?q?1750181262037778226?= Use latest available pr_lvl() instead of older printk(KERN_LVL) Just a upgrade of print utilities usage no functional changes. Suggested-by: Andy Shevchenko Signed-off-by: Rahul Tanwar Reviewed-by: Andy Shevchenko --- arch/x86/kernel/devicetree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/devicetree.c b/arch/x86/kernel/devicetree.c index 5cd51f25f446..fcc6f1b7818f 100644 --- a/arch/x86/kernel/devicetree.c +++ b/arch/x86/kernel/devicetree.c @@ -248,7 +248,7 @@ static void __init dtb_add_ioapic(struct device_node *dn) ret = of_address_to_resource(dn, 0, &r); if (ret) { - printk(KERN_ERR "Can't obtain address from device node %pOF.\n", dn); + pr_err("Can't obtain address from device node %pOF.\n", dn); return; } mp_register_ioapic(++ioapic_id, r.start, gsi_top, &cfg); @@ -265,7 +265,7 @@ static void __init dtb_ioapic_setup(void) of_ioapic = 1; return; } - printk(KERN_ERR "Error: No information about IO-APIC in OF.\n"); + pr_err("Error: No information about IO-APIC in OF.\n"); } #else static void __init dtb_ioapic_setup(void) {}