Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1433531pxy; Fri, 23 Apr 2021 08:00:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVi3ShfdpHpFRyxtq+fTmPImbz+FKMZihWu3s//+z0GfxjJNNX4B/2qCHfrmyeQma3junp X-Received: by 2002:a17:906:af94:: with SMTP id mj20mr4775203ejb.279.1619190023969; Fri, 23 Apr 2021 08:00:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619190023; cv=none; d=google.com; s=arc-20160816; b=vbt7bYK5uJmfv6KFVAQbtF0dda/1lqspeCapsckV+XYYe/bYaO6s8TqWKdfjUwpcah +y++IHLf51rX4SgZsJjZJ+waj6RQ2LDS+Z8cbQv9JxyqFGqbRqaoSYal1Ejv+6IHyvQ5 sQYEYD3SpgfIXELCnyiXogTbOEeyEPqfm+Jjw7GOJtopHzRwTiV6CT0cH4wFm9pEzVxD SezVhi4avE4R9ZskwVpp4UJcFNDCgCdO7N1V2L8x9jLq2IhPeCpjNwPNuuJFeLqLOv5w Sl879I4UxtsTF9bMpy8o26B5cDT9ktzjpz6ilefiyl68Zkt2H2ICo0+OY+g69xnPzcdl AyDA== 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=eFGip8GdplQRpVS7NkATjqdOfyJ759rJNy7DuOg4QwROBxz1iA1b0T72ArOlxuPDNy l2M9KuS1xtC1rLRXSfXs00k6Osyah7o3V8RHGRduOaK0phD2hbrEDHGOAF66byHnqPh2 6GMlmtIcSquXwboRXIk1A9sLvwTk5c4wWDmkKlE2yTEGY1xsoKh6hPcMMBV8L1piDrRb oK6oDPPBE+kICYqFHvUaOnwHAiqtZcQwKA5sokHVHbtEvP9Z+XyJwdvsWJ1Knf5yVJg0 w1wlV4wBNYGhN7pzhJU5B8FX8qpfSb1PAlJHFRNW3UKHD5DZ1D6WGjPkOoyJsWTSAzTd Mf5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Lstd56lw; 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 hb24si5435735ejb.158.2021.04.23.08.00.00; Fri, 23 Apr 2021 08:00: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=Lstd56lw; 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 S242868AbhDWO7f (ORCPT + 99 others); Fri, 23 Apr 2021 10:59:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242783AbhDWO71 (ORCPT ); Fri, 23 Apr 2021 10:59:27 -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 ECEE7C061574 for ; Fri, 23 Apr 2021 07:58:46 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id x7so48671890wrw.10 for ; Fri, 23 Apr 2021 07:58:46 -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=Lstd56lwaDm+NDZ8FCqag0buthMnw89j+qBz4lqDoOz9Jp5qbWTOhPGA7u7zBb9KPf FUooqBEZRwCaHI7MkTOyihg/MOog3bQHoiB6q4T909ds1a/+NxTh5eDLgevYHUbvdWPs //ugm3/GC5mRCL+gMuPpmXvBnmf5eTG2slbHPIzeFp8WlUe/2aaIHRtRWzDY1iKJfpYa GWdZSl2zAbzrngoJkh0S+1IU2YRZF30JKhsvbLSb/gB7P6fseaFvYkAD9iYQVVN0/vlN 8DBOGv9E4BP7yshfX/GwqTnQcbulsoU2YIxE0PLwD1kOVPj7+A7PQfA2yOpHnZhHU0up fSYQ== 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=PzonCaP8kCZHbI65u3j2PShBy8bjHiTNmaFwfO8KqK5CfsOvs5qzWjm8Ly5kZ5P2no /pYZmEAAC8vUeVYe0Uo14WRryE+3tU5e93zrEsJjJMVF/Ablnk6JcWRYiwzm5uwNQPlX 4Srqa69p9L7FQD9AqhzBOaNo5M71ee5/v8jy91Z8d3BX0wv2LHy/hjkm1oZZCaO0pVKU YfD8LIBB8giOaAtdPnEI2wX1yUuXD44Ttj+0KNi8Rl8uRFDKpNJ8GngsqNrDhVBoI3a+ xT+ty91hqEf6x2TwRcGKNoYFgRTuNRZDtyV3oi/qprqB47XYBrG8X0xRcWpdO+LiA+pL 1ztQ== X-Gm-Message-State: AOAM5318deJ4aD3ENCUoxo4lJZ/+PH7yWyzkwRQPvQukrEVL8td8o/ti tJZVjpoIs5Ee0d5+ecqSroRFUio5F68= X-Received: by 2002:a5d:400d:: with SMTP id n13mr5193739wrp.372.1619189925539; Fri, 23 Apr 2021 07:58:45 -0700 (PDT) Received: from agape ([5.171.72.99]) by smtp.gmail.com with ESMTPSA id a7sm9480868wrn.50.2021.04.23.07.58.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Apr 2021 07:58:45 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 02/49] staging: rtl8723bs: replace DBG_871X_SEL log macro with netdev_dbg() Date: Fri, 23 Apr 2021 16:57:53 +0200 Message-Id: <9e6a1e4dc8962bfd58375be98619c76e8e28febe.1619189489.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