Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp260717pxf; Wed, 31 Mar 2021 02:44:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiH+E6I6wTxdZn0leljGndUBwe8bwaO+K22hfvDks6zMxGyOBuevv77TE/FPde4Ei7EG3X X-Received: by 2002:aa7:c903:: with SMTP id b3mr2624867edt.156.1617183863873; Wed, 31 Mar 2021 02:44:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617183863; cv=none; d=google.com; s=arc-20160816; b=lk6bJIZkHmjdL1lrh3AenGNT6+XqywQaY4w5T8O6vKgyTXOBUDJYNwqoOcqM+fn7Vb WHItHSdZYLKCR3jmfZDt3btU1/JEzN9MvbyCnRFtYM6N+0soyJsoQnZ49dCmhqTM+uPl 2kGkJcizFa0lVe1+byMuGEtxsBrHe19jcjPn7VZ/C2WnwfcBFs6xacxv30uyvPFny/C4 LInPQolYRxF6S62cyg00fshH22RYwyqXLtNtlvf2odlezCNjjmhuaDnywsfCxawOPNcS PW26FMdmA6JtewhgDQAxECq0MM9FH6Z5vRJbaPD2kFqi5ZqrhZ3ijc3j1ky3U5wJO+Kt Seug== 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=IJ04qPwZQoG/udgicot4c9qejEU4WCDTOW8eSD6SHqY=; b=OZscIQsKvVEK7RDRjVJn2sMuTncVtYrggAy7I7gxNH9ppuhQ4Yc3/wZG2Ycytf5AJp nU+9faxccEgg0DkpXzMj5BR4lvGid0ahGUQ1Vkpfccg/8MinTSNLsuJWA9YrUBl+JAnp Ra2u1py6W7ReO25Vbh2nsM8v9hd4lHqyMGPTkjzaHCzeXfYJPv7nk+7BnzLBZ0gcfGAI 9e4nhk5fpiz84ReDOChtYWIza4RpNC2qUAtgWBW6DMRoF4KVs2XgVFyqB19oeAMST/Ws Ei1oDIReWUD9BY1CqiAyMY8TWCbRY9nAbZz2CfvVzEWkjDfiCg94grXiHv9JCeY7ErMz vvMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HMXwsjfT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y12si1433457eda.74.2021.03.31.02.44.01; Wed, 31 Mar 2021 02:44:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HMXwsjfT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235059AbhCaJmA (ORCPT + 99 others); Wed, 31 Mar 2021 05:42:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234863AbhCaJlB (ORCPT ); Wed, 31 Mar 2021 05:41:01 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CC22C061574 for ; Wed, 31 Mar 2021 02:41:01 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id ce10so29102427ejb.6 for ; Wed, 31 Mar 2021 02:41:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=IJ04qPwZQoG/udgicot4c9qejEU4WCDTOW8eSD6SHqY=; b=HMXwsjfTx/w5+cd1yFjdywftczD0R0dORvT7/HZx0OrnWzAE2HTcqd/hlqiWK8qRWS Pgr+AkRvYEgHqPLdeLhwpZhhkoyii2eRYkM2P2UCIHwU74mRIUGuZ+sEW6WxvpsugBNU Dq80YleaeKobEEibt/SV179f8dE7uLf19zUsKhrsxaXd1OMbvJMdKP8AsQonlIS47mx6 mqb6EOOXsWZ61LVyWngIqh3Bj5Qoqs2okDydGREz7ZinjBPNy2/BlPh33qp5p3q0pcGL xXD+WkQTmuqBqobPnmcW4ENAYxRqredqppNC7fOZ6NCyh4lDlcjBPWbkMmSP52Usv4os 7+kw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=IJ04qPwZQoG/udgicot4c9qejEU4WCDTOW8eSD6SHqY=; b=CCtQNBP9EdXSOAW+7pciIaZnPyz0Go+cfODnMqHnxVMwxoV78ezZQQe8Mg86MTx87o FVUV7n59eo1uNOm43SniCy26OjCAdbm49PSiVgKOgi434KubF2tnBks9NW5Wl8NK8acr uoBwzzuGi0uTiYV80eTl8WcQTRNlz1VrMnAF5ldlPKxO5r+98dzQYMGERIitebhoiRTI tvhJvZKTuTZadRAi6rebIWge+ubOTi9uW58pSL76RB+VwLGXEiwlB0HYQf1aswMTYhqS oRy2Px/N0b1MH5P+bLULoKZCbnSVgKAthgYBWYYNv8DiJkG+QCNL3Kfd+95DzteF/pzE BGLA== X-Gm-Message-State: AOAM530F2JB7sR4mXUIOLWv1IAROdMOf9y9z1hzNHiTOGuKty1c0cw7S nv8+NAf5HNSwJJaPT3UY8eTc7PxaiiSD8A== X-Received: by 2002:a17:906:d8c6:: with SMTP id re6mr2453291ejb.311.1617183659810; Wed, 31 Mar 2021 02:40:59 -0700 (PDT) Received: from agape ([5.171.73.44]) by smtp.gmail.com with ESMTPSA id i11sm822017ejf.76.2021.03.31.02.40.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Mar 2021 02:40:59 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: joe@perches.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Fabio Aiuto Subject: [PATCH 25/40] staging: rtl8723bs: replace RT_TRACE with public printk wrappers in hal/rtl8723bs_xmit.c Date: Wed, 31 Mar 2021 11:39:53 +0200 Message-Id: X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org replace private macro RT_TRACE for tracing with in-kernel pr_* printk wrappers Signed-off-by: Fabio Aiuto --- .../staging/rtl8723bs/hal/rtl8723bs_xmit.c | 42 ++++++------------- 1 file changed, 13 insertions(+), 29 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/rtl8723bs_xmit.c b/drivers/staging/rtl8723bs/hal/rtl8723bs_xmit.c index 597cf3a88c51..ad27ba1592ed 100644 --- a/drivers/staging/rtl8723bs/hal/rtl8723bs_xmit.c +++ b/drivers/staging/rtl8723bs/hal/rtl8723bs_xmit.c @@ -102,11 +102,8 @@ static s32 rtl8723_dequeue_writeport(struct adapter *padapter) (padapter->bSurpriseRemoved) || (padapter->bDriverStopped) ) { - RT_TRACE( - _module_hal_xmit_c_, - _drv_notice_, - ("%s: bSurpriseRemoved(write port)\n", __func__) - ); + pr_notice("%s %s: bSurpriseRemoved(write port)\n", + DRIVER_PREFIX, __func__); goto free_xmitbuf; } @@ -151,16 +148,9 @@ s32 rtl8723bs_xmit_buf_handler(struct adapter *padapter) ret = (padapter->bDriverStopped) || (padapter->bSurpriseRemoved); if (ret) { - RT_TRACE( - _module_hal_xmit_c_, - _drv_err_, - ( - "%s: bDriverStopped(%d) bSurpriseRemoved(%d)!\n", - __func__, - padapter->bDriverStopped, - padapter->bSurpriseRemoved - ) - ); + pr_err("%s %s: bDriverStopped(%d) bSurpriseRemoved(%d)!\n", + DRIVER_PREFIX, __func__, padapter->bDriverStopped, + padapter->bSurpriseRemoved); return _FAIL; } @@ -374,7 +364,8 @@ static s32 xmit_xmitframes(struct adapter *padapter, struct xmit_priv *pxmitpriv /* dump xmit_buf to hw tx fifo */ if (pxmitbuf) { - RT_TRACE(_module_hal_xmit_c_, _drv_info_, ("pxmitbuf->len =%d enqueue\n", pxmitbuf->len)); + pr_info("%s pxmitbuf->len =%d enqueue\n", + DRIVER_PREFIX, pxmitbuf->len); if (pxmitbuf->len > 0) { struct xmit_frame *pframe; @@ -424,16 +415,9 @@ static s32 rtl8723bs_xmit_handler(struct adapter *padapter) (padapter->bDriverStopped) || (padapter->bSurpriseRemoved) ) { - RT_TRACE( - _module_hal_xmit_c_, - _drv_notice_, - ( - "%s: bDriverStopped(%d) bSurpriseRemoved(%d)\n", - __func__, - padapter->bDriverStopped, - padapter->bSurpriseRemoved - ) - ); + pr_notice("%s %s: bDriverStopped(%d) bSurpriseRemoved(%d)\n", + DRIVER_PREFIX, __func__, padapter->bDriverStopped, + padapter->bSurpriseRemoved); return _FAIL; } @@ -492,7 +476,7 @@ int rtl8723bs_xmit_thread(void *context) complete(&pxmitpriv->SdioXmitTerminate); - RT_TRACE(_module_hal_xmit_c_, _drv_notice_, ("-%s\n", __func__)); + pr_notice("%s-%s\n", DRIVER_PREFIX, __func__); thread_exit(); } @@ -509,7 +493,7 @@ s32 rtl8723bs_mgnt_xmit( u8 *pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET; u8 txdesc_size = TXDESC_SIZE; - RT_TRACE(_module_hal_xmit_c_, _drv_info_, ("+%s\n", __func__)); + pr_info("%s+%s\n", DRIVER_PREFIX, __func__); pattrib = &pmgntframe->attrib; pxmitbuf = pmgntframe->pxmitbuf; @@ -572,7 +556,7 @@ s32 rtl8723bs_hal_xmit( err = rtw_xmitframe_enqueue(padapter, pxmitframe); spin_unlock_bh(&pxmitpriv->lock); if (err != _SUCCESS) { - RT_TRACE(_module_hal_xmit_c_, _drv_err_, ("rtl8723bs_hal_xmit: enqueue xmitframe fail\n")); + pr_err("%s %s: enqueue xmitframe fail\n", DRIVER_PREFIX, __func__); rtw_free_xmitframe(pxmitpriv, pxmitframe); pxmitpriv->tx_drop++; -- 2.20.1