From patchwork Mon Nov 20 12:53:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: venkat.prashanth2498@gmail.com X-Patchwork-Id: 10066389 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 841E7602B7 for ; Mon, 20 Nov 2017 12:54:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 73B9629279 for ; Mon, 20 Nov 2017 12:54:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 66D50292A8; Mon, 20 Nov 2017 12:54:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 07FC529279 for ; Mon, 20 Nov 2017 12:54:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751140AbdKTMyd (ORCPT ); Mon, 20 Nov 2017 07:54:33 -0500 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36765 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751073AbdKTMyc (ORCPT ); Mon, 20 Nov 2017 07:54:32 -0500 Received: by mail-pf0-f196.google.com with SMTP id i15so7251222pfa.3 for ; Mon, 20 Nov 2017 04:54:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=7YsGedAKhV/AfsaxnJ5mwS1oHlJkS6fuXzpliJzXZH0=; b=VECHdmbnLsnia2SPdSx3X0yqljDODJBcSUbFt/214wNa5j2JcFRo9mMWsMnFXOdLR+ ad3QBDrBRMHBAfxdML4nD7V7Oqj98MHlzobG56+IrEztiao6gCEOJH0fyeQwiSoR2aRE bEuz9JQcnbTNkLO3JkaIawkeqjRpenjJiZ2YEj00q1ruECHIz3LEU7DEH3uFcyMdbAzD Nrr/CxdwhODHhnDDlufmWbt3O+CCfLZX/Pk5wuDQT9xV0OFPdSqXSYofV0CnHKya202V ibjnQdAIYrRucJZMMQYX1eN2bQ3wxVC61tMRqOFeoCOwJEy0u++gltRW5e5yIFWtgcNi 7qxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=7YsGedAKhV/AfsaxnJ5mwS1oHlJkS6fuXzpliJzXZH0=; b=j56xk1SAbw/pdv5n97gnJynOlHzuM+14p6wauXskQx2L1MGTTWJ6kl3/fedzfSLRMQ KexJJZf4FkEEp+Uggqz6xpZnJTidBCymuTMfn0hALZwC0sDqRlO2NMFVdfACQw8GvKMg hOhGyjfvbCCpjpkWdqNW+pFScdsKXk74Z2FpLlwjqoLoVupvy0cteLKRyvUSwcVVnf4s Pi8PFghkLVdpxYWxkHxd8HkD+4yFWoeMhNUPCu5Yxn4OMnmddlMT8zofEBqATbj8ifwG oOLIdpToUkN1Gh51iueXyHKWMqm4WQ+OTla9I+u196SOXCilmiwELgmSrZjAUEkPyrvj E5fQ== X-Gm-Message-State: AJaThX65tohX9HRuc7GzrLtBHmS6uyOfZ3VqDXY0pQAAklaZCWscmTSb q5tx9WJ6/DQktnfW4dFmIZI= X-Google-Smtp-Source: AGs4zMbC+Dz3FAStKO7yrZES/t4Gy/cTeT4jakYr9DzfL9oGsI00CPZRHY8Gqda11hVzDWleyd8xCw== X-Received: by 10.84.251.144 with SMTP id w16mr8117783pll.11.1511182471916; Mon, 20 Nov 2017 04:54:31 -0800 (PST) Received: from localhost.localdomain ([183.82.194.182]) by smtp.gmail.com with ESMTPSA id c24sm20392840pfl.2.2017.11.20.04.54.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 20 Nov 2017 04:54:31 -0800 (PST) From: venkat.prashanth2498@gmail.com To: gregkh@linuxfoundation.org, linux-wireless@vger.kernel.org Cc: Larry.Finger@lwfinger.net, chaoming_li@realsil.com.cn, Venkat Prashanth B U Subject: [PATCH v1] rtlwifi:rtl8723ae: Fix embedded function names with __func__ Date: Mon, 20 Nov 2017 18:23:57 +0530 Message-Id: <1511182437-5870-1-git-send-email-venkat.prashanth2498@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Venkat Prashanth B U Prefer and make it generic by using %s and __func__ to print functions name instead of embedding functions name in print statements Signed-off-by: Venkat Prashanth B U --- drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c b/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c index f713c72..bd56bb6 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c @@ -389,7 +389,7 @@ void rtl8723e_tx_fill_desc(struct ieee80211_hw *hw, if (pci_dma_mapping_error(rtlpci->pdev, mapping)) { RT_TRACE(rtlpriv, COMP_SEND, DBG_TRACE, - "DMA mapping error\n"); + "%s():DMA Mapping Error", __func__); return; } if (mac->opmode == NL80211_IFTYPE_STATION) { @@ -498,7 +498,7 @@ void rtl8723e_tx_fill_desc(struct ieee80211_hw *hw, if (ieee80211_is_data_qos(fc)) { if (mac->rdg_en) { RT_TRACE(rtlpriv, COMP_SEND, DBG_TRACE, - "Enable RDG function.\n"); + "%s():Enable RDG function.\n", __func__); SET_TX_DESC_RDG_ENABLE(pdesc, 1); SET_TX_DESC_HTC(pdesc, 1); } @@ -537,7 +537,7 @@ void rtl8723e_tx_fill_desc(struct ieee80211_hw *hw, SET_TX_DESC_BMC(pdesc, 1); } - RT_TRACE(rtlpriv, COMP_SEND, DBG_TRACE, "\n"); + RT_TRACE(rtlpriv, COMP_SEND, DBG_TRACE, "%s():\n", __func__); } void rtl8723e_tx_fill_cmddesc(struct ieee80211_hw *hw, @@ -557,7 +557,7 @@ void rtl8723e_tx_fill_cmddesc(struct ieee80211_hw *hw, if (pci_dma_mapping_error(rtlpci->pdev, mapping)) { RT_TRACE(rtlpriv, COMP_SEND, DBG_TRACE, - "DMA mapping error\n"); + "%s():DMA Mapping Error", __func__); return; } CLEAR_PCI_TX_DESC_CONTENT(pdesc, TX_DESC_SIZE);