Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp260152pxf; Wed, 31 Mar 2021 02:43:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXa9+0Fx4LRGa6IPt9wti5X9DQl0EotJlB4DiREr8cD5r4sfjzxMlFxZw68hHcSUeoG47P X-Received: by 2002:a17:906:4f02:: with SMTP id t2mr2512260eju.121.1617183808619; Wed, 31 Mar 2021 02:43:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617183808; cv=none; d=google.com; s=arc-20160816; b=sHx/L6WRVn9gtxIb58VcftT93s69IPSkqdfhX5ed4yVwRTX1pzEkXOUimck9riepTd IFYZdJC9oelgUJJHSabT17Rtll0khYZdhy1HAGb+33jkxuojHg8P3gEqD2KH01pDSJdr jv3jvXSs54zvaFpxJJlTcgOcrJOYLQcFD+Gwtb0QO2NWwFEOa4GSQKuTFPS0T96SNt03 iXysTOCSAOGQGGCV/6yZvW2ON/MNSMzFFfZBQHt8/3qpxHXto/S8oxF9tCQBj1uSfkYS Hd5A6ZCoym39dfFxnNgUjqf8WpgQs3chlbPvptgeF556fQIQU+vfBQV9nsqLQLLb1J9w QeMQ== 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=+qjP3rPq6GRvudxmPUC4N1/IMA281UmIav1b4KbVRkI=; b=tXZDzZwgfx+RxdV8/J8OT75dkXjlE8NuCnaIfSIR+D1ptzDfcijU7eB9cPWAUv9HRt h7W1goKX9F0RYabMP/Iaen3DnYIhHTjLIBsbn1CMV3Vt1TDFXHkFowrspOu31efRY8rD hH2qTjFYp69Wq4YnVC6I5schEHfhOcRwjsiKrzfSyEcYAPOQaliN0RC97kn7AWjHh06R fEfUI+bhQ0PGsVkeZz4jlY0YC1JXPK8zMsZyP99UrE2hg56Iq4HJrgdw7unX27L8c7ac AAHhXc0Bd+bYKs2s4msevasWVhs6Tb9hCzeDsBYg2XwRnS8QkaOl4wcCTrIwr99FJOWh fMIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bUm98LSc; 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 o21si1364600edc.377.2021.03.31.02.43.05; Wed, 31 Mar 2021 02:43:28 -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=bUm98LSc; 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 S234948AbhCaJlm (ORCPT + 99 others); Wed, 31 Mar 2021 05:41:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234852AbhCaJkx (ORCPT ); Wed, 31 Mar 2021 05:40:53 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84CA4C061574 for ; Wed, 31 Mar 2021 02:40:53 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id ap14so15937849ejc.0 for ; Wed, 31 Mar 2021 02:40:53 -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=+qjP3rPq6GRvudxmPUC4N1/IMA281UmIav1b4KbVRkI=; b=bUm98LScnGWacVl0SAvhYVeOMyhRNv/Zq/KDJnqAhoNDZd0JLdxMu0dUIBsDA//O3v 939BArGYZM+PJa03351QuA2AtmV5Be0bIOT1JzKKdgzqmrABrI1zoy4sjPehBzAyFMj8 kjkBlyRBsEAFtkSlVot/CQIY4b0qQ0THCWcya3Cy7X0MDPmt0RprTowUmN9EdckWxep3 V8dg4/5vWYJVVZczpMp3l/53FsxzrVRFbKaI8B8dH1iZhxipPYl6xDP4ze3795Gg2dQG /LiD6T+vrxEXTmmV2BTjXIJtGshkVdEnVmDfj3neNUhxzpaPmw6mzrIYiQyC2O4HewcM AIsQ== 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=+qjP3rPq6GRvudxmPUC4N1/IMA281UmIav1b4KbVRkI=; b=lsE4Yp/G5dcYyKMRHcTlY6xH85nYR8MKmbT/pvisFCszhxEs+E/6kHTZVsKPoHiKRw zn1OCTP+f2CJ4g2PsB316TlrGFw3Et0mQmwhBE/+3EdPmefzu3Lum3GP/j6/quF6fuEq 90/ecc1I5XyIIrhLqtPq+mPwwMxt6zlsJ0NeiqP2RiVrJdLqFC7qaShzdwF2sbqKI3eU ii3h286xwerTm2Z69JEhpI+rJWqobvl2Lo6FJyAcuwa7ob5f7rrifq3C1QXmZkL4tkhs SzxKwfKGgiV9S3DMtduwuel7qoqK1YtidCwG/KtMXjc6h0gfISaSNCxPMOn8XJ4sW3Oo J35w== X-Gm-Message-State: AOAM533IJBTL7+2oW6Se/0JnKfo3GBy+RevZmoD71R8iXF+E/N6ll+LM WdagRFghNPX5pu6vfx179A8= X-Received: by 2002:a17:906:3ac3:: with SMTP id z3mr2651828ejd.106.1617183652335; Wed, 31 Mar 2021 02:40:52 -0700 (PDT) Received: from agape ([5.171.73.44]) by smtp.gmail.com with ESMTPSA id t15sm1115832edw.84.2021.03.31.02.40.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Mar 2021 02:40:52 -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 21/40] staging: rtl8723bs: replace RT_TRACE with public printk wrappers in hal/sdio_ops.c Date: Wed, 31 Mar 2021 11:39:49 +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 --- drivers/staging/rtl8723bs/hal/sdio_ops.c | 42 ++++++++---------------- 1 file changed, 13 insertions(+), 29 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/sdio_ops.c b/drivers/staging/rtl8723bs/hal/sdio_ops.c index a24a39e70454..34531d6a6810 100644 --- a/drivers/staging/rtl8723bs/hal/sdio_ops.c +++ b/drivers/staging/rtl8723bs/hal/sdio_ops.c @@ -777,29 +777,15 @@ void EnableInterrupt8723BSdio(struct adapter *adapter) himr = cpu_to_le32(haldata->sdio_himr); sdio_local_write(adapter, SDIO_REG_HIMR, 4, (u8 *)&himr); - RT_TRACE( - _module_hci_ops_c_, - _drv_notice_, - ( - "%s: enable SDIO HIMR = 0x%08X\n", - __func__, - haldata->sdio_himr - ) - ); + pr_notice("%s %s: enable SDIO HIMR = 0x%08X\n", + DRIVER_PREFIX, __func__, haldata->sdio_himr); /* Update current system IMR settings */ tmp = rtw_read32(adapter, REG_HSIMR); rtw_write32(adapter, REG_HSIMR, tmp | haldata->SysIntrMask); - RT_TRACE( - _module_hci_ops_c_, - _drv_notice_, - ( - "%s: enable HSIMR = 0x%08X\n", - __func__, - haldata->SysIntrMask - ) - ); + pr_notice("%s %s: enable HSIMR = 0x%08X\n", + DRIVER_PREFIX, __func__, haldata->SysIntrMask); /* */ /* There are some C2H CMDs have been sent before system interrupt is enabled, e.g., C2H, CPWM. */ @@ -894,7 +880,7 @@ static struct recv_buf *sd_recv_rxfifo(struct adapter *adapter, u32 size) readbuf = recvbuf->pskb->data; ret = sdio_read_port(&adapter->iopriv.intf, WLAN_RX0FF_DEVICE_ID, readsize, readbuf); if (ret == _FAIL) { - RT_TRACE(_module_hci_ops_os_c_, _drv_err_, ("%s: read port FAIL!\n", __func__)); + pr_err("%s %s: read port FAIL!\n", DRIVER_PREFIX, __func__); return NULL; } @@ -1062,9 +1048,8 @@ void sd_int_hdl(struct adapter *adapter) sd_int_dpc(adapter); } else { - RT_TRACE(_module_hci_ops_c_, _drv_err_, - ("%s: HISR(0x%08x) and HIMR(0x%08x) not match!\n", - __func__, hal->sdio_hisr, hal->sdio_himr)); + pr_err("%s %s: HISR(0x%08x) and HIMR(0x%08x) not match!\n", + DRIVER_PREFIX, __func__, hal->sdio_hisr, hal->sdio_himr); } } @@ -1088,13 +1073,12 @@ u8 HalQueryTxBufferStatus8723BSdio(struct adapter *adapter) numof_free_page = SdioLocalCmd53Read4Byte(adapter, SDIO_REG_FREE_TXPG); memcpy(hal->SdioTxFIFOFreePage, &numof_free_page, 4); - RT_TRACE(_module_hci_ops_c_, _drv_notice_, - ("%s: Free page for HIQ(%#x), MIDQ(%#x), LOWQ(%#x), PUBQ(%#x)\n", - __func__, - hal->SdioTxFIFOFreePage[HI_QUEUE_IDX], - hal->SdioTxFIFOFreePage[MID_QUEUE_IDX], - hal->SdioTxFIFOFreePage[LOW_QUEUE_IDX], - hal->SdioTxFIFOFreePage[PUBLIC_QUEUE_IDX])); + pr_notice("%s %s: Free page for HIQ(%#x), MIDQ(%#x), LOWQ(%#x), PUBQ(%#x)\n", + DRIVER_PREFIX, __func__, + hal->SdioTxFIFOFreePage[HI_QUEUE_IDX], + hal->SdioTxFIFOFreePage[MID_QUEUE_IDX], + hal->SdioTxFIFOFreePage[LOW_QUEUE_IDX], + hal->SdioTxFIFOFreePage[PUBLIC_QUEUE_IDX]); return true; } -- 2.20.1