From ee4493d7bff0343b6a33f04a9340ffd0e34ebabb Mon Sep 17 00:00:00 2001 From: Shobek Attupurath Date: Mon, 21 Nov 2022 11:55:15 +0000 Subject: [PATCH] rtl8822ce: Remove pr_debug redefinition Issue: pr_debug is redfined to printk causing unwanted log prints in dmesg Fix: Remove pr_debug redefintion in rtl8822ce driver Bug 3844473 Bug 4392253 Change-Id: I3aed85b8d61a764a74c59c2eef5f1f3dd60dd14a Signed-off-by: Shobek Attupurath Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2813193 (cherry picked from commit 83a4b1f131209e357f80015fba386286f2888423) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2827187 Signed-off-by: Revanth Kumar Uppala Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3024490 Reviewed-by: Bibek Basu GVS: Gerrit_Virtual_Submit --- drivers/net/wireless/realtek/rtl8822ce/hal/phydm/phydm_debug.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/realtek/rtl8822ce/hal/phydm/phydm_debug.h b/drivers/net/wireless/realtek/rtl8822ce/hal/phydm/phydm_debug.h index 1341330c..6da5cd67 100644 --- a/drivers/net/wireless/realtek/rtl8822ce/hal/phydm/phydm_debug.h +++ b/drivers/net/wireless/realtek/rtl8822ce/hal/phydm/phydm_debug.h @@ -1,6 +1,7 @@ /****************************************************************************** * * Copyright(c) 2007 - 2017 Realtek Corporation. + * Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License as @@ -88,8 +89,6 @@ #elif (DM_ODM_SUPPORT_TYPE == ODM_CE) && defined(DM_ODM_CE_MAC80211) #define PHYDM_SNPRINTF snprintf #elif (DM_ODM_SUPPORT_TYPE == ODM_CE) - #undef pr_debug - #define pr_debug printk #define RT_PRINTK(fmt, args...) pr_debug(fmt, ## args) #define RT_DISP(dbgtype, dbgflag, printstr) #define RT_TRACE(adapter, comp, drv_level, fmt, args...) \