Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp2002016pxy; Sat, 24 Apr 2021 02:04:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvP+cGF8GV7lc6Vb0rrfZthdpCLPKTUbHPRILNNE7Tv2j6o2GmWaXCH5lNpmVkt/DpLYnv X-Received: by 2002:a17:906:5e15:: with SMTP id n21mr8236952eju.57.1619255044416; Sat, 24 Apr 2021 02:04:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619255044; cv=none; d=google.com; s=arc-20160816; b=r6K+2tUKc9eiLg8h8R/wC/CV24tOBL7Ti5QqbWxJYRnB7uySBCvGnmp3bWkQb45HEp 28pbeVOBBuLv+ab19ksTHglZRJSjcsrRxiLfkCp30L3gA7E1rIKqp+eaHmJ87uSQFxkC 8KAm179Axo5m6cQvpVknW2ldXaer6fCLj+7aKMPEnmkG74IqAqawNrm54kZcA44uc4C4 c9wkjvE9dJsFOsEmYiEYTR240PEoEmravZ6XQwY2A4PXQEVq1RSf1vRTKupjpmUz06+L tAqc+oYiqATA1r1WIh8ZxtWedPHzVk+ICxUaxeZCloCWk5LDj9+sheeGEnD7Ue9UH7SJ q3Hg== 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=F/iRqZNCmCgxmpFbtmmNVS6lXC39KZ3FxTpPWN6Xmdw=; b=oDaEJueNMcBdYAgqDmehHPrQC62zYkyq7Pz/d3D3NUJTznrMu3MWNBq7TxKll9GF54 3UMGpGcVoRpIdnpdGr8p4CS3rCxDA9uF7a03LJVfhAA/SXsNeAWE7tt0Z9pfqknpEiPx /LY0phjzIZyixXHs0qcKLRgkvkNVoVrwv8IpEr79Coffe1L3fFsvIUPTM4KdFxlbjPRt zHYGOj+qLcu/CoVuI+r92nFuOPaVvBj+N+ANT6sLrAgibL5QjfpdRGxG4hPe/QYFRaQy A3cPgSCyICz7jcw+HSFU+GKviOg9KfGhFFtV2BdMTVNQk6orKKxxmdI5qvPqEzkpUUJf Mq0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kkETIbPA; 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 d4si7454033edv.581.2021.04.24.02.03.41; Sat, 24 Apr 2021 02:04:04 -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=kkETIbPA; 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 S236278AbhDXJDZ (ORCPT + 99 others); Sat, 24 Apr 2021 05:03:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234596AbhDXJDS (ORCPT ); Sat, 24 Apr 2021 05:03:18 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A7B8C06174A for ; Sat, 24 Apr 2021 02:02:40 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id x7so50644053wrw.10 for ; Sat, 24 Apr 2021 02:02:40 -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=F/iRqZNCmCgxmpFbtmmNVS6lXC39KZ3FxTpPWN6Xmdw=; b=kkETIbPAMKrWgB3GJLegv/n7bkOYFzk2F9EyimD5MsOVsT6V4+Agkm29HbC3UdZIZQ KmHJcU/b9m0rZKTWV9McwfuNtOm9MkbdNVVwv67LfC+9Pcly4ey0VxW41Z2DlhtkM5R5 sfzTjC7h1YRRzZzAaC3+7WTr4AIhGgmEca3lxL0fylAUebfI64zaY6LJpKh6pROdgZFO h4as3dC/ZMRrjmEphWU70CReFRyi9a5H3dNdJpo1htICfqEdlpkd2Lh3+fd3g4fjXKtJ +Zd6bzYmGfNtIWSQ5ePfAmj+OTtnrVUQ9V7j2if1YkwBd2ZdH8U/w578ZB4Jdlh25fNV vXWw== 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=F/iRqZNCmCgxmpFbtmmNVS6lXC39KZ3FxTpPWN6Xmdw=; b=t/c5FJEUEEHJfTYtBGw+3Ezz/b+mVtQQa0OQQ18NeUIZR1updsOn95H16AMjXjjCpS NTONGlXDWz8OtmhKUxDav8I2U9R3ewBOXZ5GOvvV7qe7NbELngl16SgrXO/oUkXXwgNp F+da0bHV4QxKFjy/puWHPA2HGHJw1Wvo3uyFWdOnpBG4QoAYV4bG8gZsw5iiWmQ3coOO sL5XnE/+bt3moZs76BQ7/YFlk7PMuvjeJaCYkRzA4eDbIlSiwPHeWA3Dcj9aymxdo89s lTD+WFIl04B/EN5YpasCepAvPRkNkyMeci9rBZMJQMShvdvoq321Xt4cZSuFOE5MQ0F2 qugg== X-Gm-Message-State: AOAM531VLKmHhO2TI3VtVnTCUvWEn6UhUQRXkAgH3P2dbJfC45j4nlA0 eK5BonD5XljD55+qyR6JR72/iPX67cfX7Q== X-Received: by 2002:a05:6000:1789:: with SMTP id e9mr10083140wrg.110.1619254958990; Sat, 24 Apr 2021 02:02:38 -0700 (PDT) Received: from agape ([5.171.80.252]) by smtp.gmail.com with ESMTPSA id l5sm12377999wro.4.2021.04.24.02.02.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Apr 2021 02:02:38 -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 v2 02/50] staging: rtl8723bs: replace DBG_871X_SEL log macro with netdev_dbg() Date: Sat, 24 Apr 2021 11:01:45 +0200 Message-Id: <9e6a1e4dc8962bfd58375be98619c76e8e28febe.1619254603.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 replace DBG_871X_SEL log macro with the net device driver recommended netdev_dbg(). This macro by default does a raw printk, and the alternative behaviour, never triggered is a seq_print() call. So replace with netdev_dbg(). The operation has been done with the following semantic patch script: @@ expression sel; expression list args; identifier padapter; identifier func; @@ func(..., struct adapter *padapter, ...) { <... - DBG_871X_SEL(sel, args); + netdev_dbg(padapter->pnetdev, args); ...> Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/core/rtw_debug.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_debug.c b/drivers/staging/rtl8723bs/core/rtw_debug.c index 0ee0190c09d7..a43fa38cae62 100644 --- a/drivers/staging/rtl8723bs/core/rtw_debug.c +++ b/drivers/staging/rtl8723bs/core/rtw_debug.c @@ -23,9 +23,10 @@ void mac_reg_dump(void *sel, struct adapter *adapter) for (i = 0x0; i < 0x800; i += 4) { if (j%4 == 1) netdev_dbg(adapter->pnetdev, "0x%03x", i); - DBG_871X_SEL(sel, " 0x%08x ", rtw_read32(adapter, i)); + netdev_dbg(adapter->pnetdev, " 0x%08x ", + rtw_read32(adapter, i)); if ((j++)%4 == 0) - DBG_871X_SEL(sel, "\n"); + netdev_dbg(adapter->pnetdev, "\n"); } } @@ -37,9 +38,10 @@ void bb_reg_dump(void *sel, struct adapter *adapter) for (i = 0x800; i < 0x1000 ; i += 4) { if (j%4 == 1) netdev_dbg(adapter->pnetdev, "0x%03x", i); - DBG_871X_SEL(sel, " 0x%08x ", rtw_read32(adapter, i)); + netdev_dbg(adapter->pnetdev, " 0x%08x ", + rtw_read32(adapter, i)); if ((j++)%4 == 0) - DBG_871X_SEL(sel, "\n"); + netdev_dbg(adapter->pnetdev, "\n"); } } @@ -64,9 +66,9 @@ void rf_reg_dump(void *sel, struct adapter *adapter) value = rtw_hal_read_rfreg(adapter, path, i, 0xffffffff); if (j%4 == 1) netdev_dbg(adapter->pnetdev, "0x%02x ", i); - DBG_871X_SEL(sel, " 0x%08x ", value); + netdev_dbg(adapter->pnetdev, " 0x%08x ", value); if ((j++)%4 == 0) - DBG_871X_SEL(sel, "\n"); + netdev_dbg(adapter->pnetdev, "\n"); } } } -- 2.20.1