Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp123331pxy; Wed, 28 Apr 2021 00:29:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMhFJJETxx0M6JpAKvPc3dDdTUHBOp4EOCvZn8UjUXJVltPLhMATQZVXARg+H+kDaldall X-Received: by 2002:a17:902:8641:b029:e4:7e05:c916 with SMTP id y1-20020a1709028641b02900e47e05c916mr27548619plt.57.1619594945484; Wed, 28 Apr 2021 00:29:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619594945; cv=none; d=google.com; s=arc-20160816; b=MnAQ45AjwPKeCJvYDxhFxvliejxAqMBe3Z+BTvcPCDPb3/rclEuvDukMe0pkp+GWJD LsSuarbAHHrhAEDY3Wn45NLOByz+1uqhmHZ7ArTb5G29bGO2QQvb1HB5AfdL1TNdc6Vo 5zVo+YWwmAuHgbzn9L8+fXAZl/rpysehGGtIoro5S5xnn6QqiuqeoBlLhat+iPCVe5Ic dZlBEcjiBSseBSNQa+tQ9EkePupy2GDZXvmmRy9ocpZbZWo8tZPmj/xn5T75sEJfRaeY YtJ5MawtJPDfHMnOLIp1IUA0EccGcfBfSK0SkEunP8iJsh8n+7rCtY4099hAWn6FRcIq BNhg== 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=hCW3WF/R+saMUVhD+ewp4j355vrqq752B+7QT7xE/dc=; b=JAUlFhdT6T5dhSM8XT+j2NbSPGZ0DExWGOA6KBmVhi19qAWv7cfI4g7gHzqAyYQ3dw Rf/MiqA3pKpsOS15rb1AD/ewPI7mmxu38lfIRBasEe8rAUiiAXz/xSGXfaZ+RijJC1BV kS/XQW7dCz0nsSBxbD3WUrkfWjf2wt9JPTJKCfuhbvhFroHNEuwvyMKxbY4fdpoGLwc7 2OtdgwHSsslTKm7qCPQCvDykBT1CoEnbLC8FyDIzYs1US01oabgSYCGLew5KsoZ3aiG7 qETB8U9Al0hGQKLYnGstg8J9hSRWUj+JXyP//+Qm+Wm62Eirl3Yoiy2h06nuJp3d/YUA p4kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=r4rxidKJ; 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 r1si8207848pjl.128.2021.04.28.00.28.52; Wed, 28 Apr 2021 00:29:05 -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=r4rxidKJ; 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 S236582AbhD1H3B (ORCPT + 99 others); Wed, 28 Apr 2021 03:29:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235862AbhD1H2z (ORCPT ); Wed, 28 Apr 2021 03:28:55 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B69B1C061574 for ; Wed, 28 Apr 2021 00:28:10 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id l2so9540092wrm.9 for ; Wed, 28 Apr 2021 00:28:10 -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=hCW3WF/R+saMUVhD+ewp4j355vrqq752B+7QT7xE/dc=; b=r4rxidKJjtKIw7dB11Nz9Ao7JtdAz5jwz3R4UszGzeM5kFGWBMc6VjbHPDzd6xADLs 9eeCKGvdIGVsL8+8dGXxZdD2nU34N7NmGHGUK06uAjH1RMBckcBKlAL77hifQ66gR1CC Sqktif06J8rJ/+bifMzkLfd9KESddW8z0DzB0CYkPlXdS3f+IweIJpMRFKZ3pLZstzxY IUH6Czm25TQ+NSb8Rc+c9NA/R1ryigKNmeBpbhubD8L2+l5VLHLsJhgOPGte6AezaHYA EdtEyQGNWI/ebKiXUhKyCpFZxinDbIT0EHRJFo1hoK0SX+GPxHZSlR2KFpx/cD7TFmCx MgvQ== 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=hCW3WF/R+saMUVhD+ewp4j355vrqq752B+7QT7xE/dc=; b=muGQoGJuUgDxxZkxRt90Ls8nhxEsU+d7cn8ZjXBsSvjUZKHDzCR524X8KRSuufFV3R 5W6BZp0JeE3vio2UPU69XUwebw5ZFxQHpQtfrOxgIatoVtPIbof+RFXWnwN6x43ZB3Ot 8KvnQ967rSEBMcFBLNnDgTCx3y6DHQf8K5YGRsQl20XXJcri3z9YPRfyUmnHOmUURxNI 3U/TxWW5x+4jxcSnAtUmltCHgIY5VjlYOPB90RkhXsxfz4vmGECPo75ZIZVJjQH1XYvD WMEXJU3ns4k7WeELWL6BqBDm3UpySVyI+JCjlPqbpzXqweW83OEd8Xu4aXDR+upWbdN1 gCug== X-Gm-Message-State: AOAM532DvmMOV+tfOqQEhqJPL4KW58lVbaU0mkj090zuc9rwKemE1ExD teCUFAnh/PRIuQWNyaVLdTwWndLnmQzD0Q== X-Received: by 2002:adf:e608:: with SMTP id p8mr34669543wrm.249.1619594889336; Wed, 28 Apr 2021 00:28:09 -0700 (PDT) Received: from agape ([5.171.72.119]) by smtp.gmail.com with ESMTPSA id e12sm3999648wrt.51.2021.04.28.00.28.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Apr 2021 00:28:09 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: joe@perches.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] staging: rtl8723bs: remove unnecessary hex dumps Date: Wed, 28 Apr 2021 09:28:04 +0200 Message-Id: <8bbf5ce17f2d778a67e86cb948395e9ed27478d9.1619594707.git.fabioaiuto83@gmail.com> 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 Remove unnecessary hex dumps in kernel log. This deletion has been done with the following semantic patch: @@ @@ - print_hex_dump_debug(...); Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/hal/hal_com.c | 6 ------ drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c | 18 ------------------ .../staging/rtl8723bs/hal/rtl8723b_hal_init.c | 3 --- 3 files changed, 27 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/hal_com.c b/drivers/staging/rtl8723bs/hal/hal_com.c index e82f59fc5e9b..2c82282958e9 100644 --- a/drivers/staging/rtl8723bs/hal/hal_com.c +++ b/drivers/staging/rtl8723bs/hal/hal_com.c @@ -916,16 +916,10 @@ s32 c2h_evt_read_88xx(struct adapter *adapter, u8 *buf) c2h_evt->seq = rtw_read8(adapter, REG_C2HEVT_CMD_SEQ_88XX); c2h_evt->plen = rtw_read8(adapter, REG_C2HEVT_CMD_LEN_88XX); - print_hex_dump_debug(DRIVER_PREFIX ": c2h_evt_read(): ", DUMP_PREFIX_NONE, - 16, 1, &c2h_evt, sizeof(c2h_evt), false); - /* Read the content */ for (i = 0; i < c2h_evt->plen; i++) c2h_evt->payload[i] = rtw_read8(adapter, REG_C2HEVT_MSG_NORMAL + 2 + i); - print_hex_dump_debug(DRIVER_PREFIX ": c2h_evt_read(): Command Content:\n", - DUMP_PREFIX_NONE, 16, 1, c2h_evt->payload, c2h_evt->plen, false); - ret = _SUCCESS; clear_evt: diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c b/drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c index 2451875ab3c0..e2ec82915073 100644 --- a/drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c +++ b/drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c @@ -309,9 +309,6 @@ static void rtl8723b_set_FwRsvdPage_cmd(struct adapter *padapter, struct rsvdpag SET_8723B_H2CCMD_RSVDPAGE_LOC_QOS_NULL_DATA(u1H2CRsvdPageParm, rsvdpageloc->LocQosNull); SET_8723B_H2CCMD_RSVDPAGE_LOC_BT_QOS_NULL_DATA(u1H2CRsvdPageParm, rsvdpageloc->LocBTQosNull); - print_hex_dump_debug(DRIVER_PREFIX ": u1H2CRsvdPageParm:", DUMP_PREFIX_NONE, - 16, 1, u1H2CRsvdPageParm, H2C_RSVDPAGE_LOC_LEN, false); - FillH2CCmd8723B(padapter, H2C_8723B_RSVD_PAGE, H2C_RSVDPAGE_LOC_LEN, u1H2CRsvdPageParm); } @@ -329,9 +326,6 @@ void rtl8723b_set_FwMediaStatusRpt_cmd(struct adapter *padapter, u8 mstatus, u8 SET_8723B_H2CCMD_MSRRPT_PARM_MACID(u1H2CMediaStatusRptParm, macid); SET_8723B_H2CCMD_MSRRPT_PARM_MACID_END(u1H2CMediaStatusRptParm, macid_end); - print_hex_dump_debug(DRIVER_PREFIX ": u1H2CMediaStatusRptParm:", DUMP_PREFIX_NONE, - 16, 1, u1H2CMediaStatusRptParm, H2C_MEDIA_STATUS_RPT_LEN, false); - FillH2CCmd8723B(padapter, H2C_8723B_MEDIA_STATUS_RPT, H2C_MEDIA_STATUS_RPT_LEN, u1H2CMediaStatusRptParm); } @@ -348,9 +342,6 @@ void rtl8723b_set_FwMacIdConfig_cmd(struct adapter *padapter, u8 mac_id, u8 raid SET_8723B_H2CCMD_MACID_CFG_RATE_MASK2(u1H2CMacIdConfigParm, (u8)((mask & 0x00ff0000) >> 16)); SET_8723B_H2CCMD_MACID_CFG_RATE_MASK3(u1H2CMacIdConfigParm, (u8)((mask & 0xff000000) >> 24)); - print_hex_dump_debug(DRIVER_PREFIX ": u1H2CMacIdConfigParm:", DUMP_PREFIX_NONE, - 16, 1, u1H2CMacIdConfigParm, H2C_MACID_CFG_LEN, false); - FillH2CCmd8723B(padapter, H2C_8723B_MACID_CFG, H2C_MACID_CFG_LEN, u1H2CMacIdConfigParm); } @@ -365,9 +356,6 @@ void rtl8723b_set_rssi_cmd(struct adapter *padapter, u8 *param) SET_8723B_H2CCMD_RSSI_SETTING_RSSI(u1H2CRssiSettingParm, rssi); SET_8723B_H2CCMD_RSSI_SETTING_ULDL_STATE(u1H2CRssiSettingParm, uldl_state); - print_hex_dump_debug(DRIVER_PREFIX ": u1H2CRssiSettingParm:", DUMP_PREFIX_NONE, - 16, 1, u1H2CRssiSettingParm, H2C_RSSI_SETTING_LEN, false); - FillH2CCmd8723B(padapter, H2C_8723B_RSSI_SETTING, H2C_RSSI_SETTING_LEN, u1H2CRssiSettingParm); } @@ -465,9 +453,6 @@ void rtl8723b_set_FwPwrMode_cmd(struct adapter *padapter, u8 psmode) hal_btcoex_RecordPwrMode(padapter, u1H2CPwrModeParm, H2C_PWRMODE_LEN); - print_hex_dump_debug(DRIVER_PREFIX ": u1H2CPwrModeParm:", DUMP_PREFIX_NONE, - 16, 1, u1H2CPwrModeParm, H2C_PWRMODE_LEN, false); - FillH2CCmd8723B(padapter, H2C_8723B_SET_PWR_MODE, H2C_PWRMODE_LEN, u1H2CPwrModeParm); } @@ -485,9 +470,6 @@ void rtl8723b_set_FwPsTuneParam_cmd(struct adapter *padapter) SET_8723B_H2CCMD_PSTUNE_PARM_ADOPT(u1H2CPsTuneParm, 1); SET_8723B_H2CCMD_PSTUNE_PARM_DTIM_PERIOD(u1H2CPsTuneParm, dtim_period); - print_hex_dump_debug(DRIVER_PREFIX ": u1H2CPsTuneParm:", DUMP_PREFIX_NONE, - 16, 1, u1H2CPsTuneParm, H2C_PSTUNEPARAM_LEN, false); - FillH2CCmd8723B(padapter, H2C_8723B_PS_TUNING_PARA, H2C_PSTUNEPARAM_LEN, u1H2CPsTuneParm); } diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c index 082448557b53..103135aad41a 100644 --- a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c +++ b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c @@ -3315,9 +3315,6 @@ void C2HPacketHandler_8723B(struct adapter *padapter, u8 *pbuffer, u16 length) C2hEvent.CmdLen = length-2; tmpBuf = pbuffer+2; - print_hex_dump_debug(DRIVER_PREFIX ": C2HPacketHandler_8723B(): Command Content:\n", - DUMP_PREFIX_NONE, 16, 1, tmpBuf, C2hEvent.CmdLen, false); - process_c2h_event(padapter, &C2hEvent, tmpBuf); /* c2h_handler_8723b(padapter,&C2hEvent); */ } -- 2.20.1