Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp260736pxf; Wed, 31 Mar 2021 02:44:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpTqV/gsVWgc6ReVJMf3BA7iq2q+bOPA7UclHKoMZdbdXFfvii9eePMzL7HTj0xaI95wTf X-Received: by 2002:a05:6402:145:: with SMTP id s5mr2550982edu.221.1617183865071; Wed, 31 Mar 2021 02:44:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617183865; cv=none; d=google.com; s=arc-20160816; b=fcHoHKoPiUE+5qwg9glhqAUwkgdXt49/3+KtIuMYfRuxfb1eIkJXAx8RUUA8mgF00O GP8kLTq+8otnlU5l22UdNvsJzdts0nE2Qf/vh8w0FrHHr/nax72PAGtoHoeDPa0WlfAU m7CTei1MhPm/8sYx686oJhv4tveXQ5WSHlvw9bIhF/IV91RdNFDKhCuvcFt4qqnU6Mgi zZdevuE0rwjIL/qxCKKYUY3nGQHP7VMlFdbLl0DrpadXuITYRhxhMqwTR8PUYVanNuy1 HMyUdeSByiGgl3QigfpvNDs0XFjAvRzcV0WZsVu2ydob4iDG3a+yXr5bsOLCOdfMy0KM uc3Q== 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=GiSL2vQNHOeb+lHHgXLmlbWZpqI3OzYyomQt07zeHrI=; b=B/YUQ/UCCI2ZcMjuoWdpL70gLfNT5l9AQ1xFDpLx2mXL9GQLa3vUno6xVRa4+F9ddp cBbbhyDhdxB5n/UHl3lBz871Mz+GyvTX5T/0NUKk7MWptotiihT3qSd2RjPMLXTsoRsR xhlT0lJbZNLey6ID9/ctrHvcrb0IB/fWDoVLR0eAp/ywSDjOWrqbcLsFGzd51p3yBMrj Etv/FEg2R/okUJcBWEB1l3hnAEFYbcca3EY1y5aqwfd35E1MUhP4/xwMytIIj59FV4dL 0byM4CrUrG+IQ4Rijagq9fO7S0nlD+Mps2APPreBVcVNTFBMaE7Qo4uaBQZF2MXc/LAE DSDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="C32qE/vb"; 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 w10si1350477edd.483.2021.03.31.02.44.02; Wed, 31 Mar 2021 02:44:25 -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="C32qE/vb"; 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 S234909AbhCaJmt (ORCPT + 99 others); Wed, 31 Mar 2021 05:42:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234975AbhCaJlX (ORCPT ); Wed, 31 Mar 2021 05:41:23 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C8CCC06175F for ; Wed, 31 Mar 2021 02:41:22 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id o19so21532660edc.3 for ; Wed, 31 Mar 2021 02:41:21 -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=GiSL2vQNHOeb+lHHgXLmlbWZpqI3OzYyomQt07zeHrI=; b=C32qE/vbLWB3F8k5DeZTOD7jNpmD8PM1+0chLyl9pj0iCZxHGZpHyKt/kJsGyCHi57 hSc0WEg2awiSncXNAL8q7T86vDDxFS/S2FMNbp843YuhgysdsU81RBp+me5n7hY0s9X9 Y38h/ZEshXeJdtBv8pi/ygo1eBz61HhsR303jyYSRoWGIVmaPBqIjUIkgZJC/gR7/l36 UmkzhsGH6Wf090crtvdD9GFt6Qncs1y3zOiJhms4KqDKNsuH4zkNXtjLyOdqfH52BrUe HNoIZNEaS+092b9NRXdHyz8fUwD9fTGTBCuQ79CVEJ5WwreT8stc5IGtHoVEsem+SsMw 0neA== 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=GiSL2vQNHOeb+lHHgXLmlbWZpqI3OzYyomQt07zeHrI=; b=IYJu6zvRu4R+xnfLSPsY7idNfZXnf+6AJ6oUbAejG2GRSgV2olVTJUjSWuhIBle7XJ qM7kYj3QQHyyarkJcSIjLn7ZYTX57SupiAMpLlZbCj2BTlgJdR7ff7R+gegsQ4le12+R kDxk6BeJBMjO9EY1hKoU6MyctTIuUBtAjmkt5U5le9vRonJJ1u4stPwwLRz6j6a1zUNU vMpmAQfh4sqInnPN/4Lb95GgvDte29jRavZQ13KnnRSyyUB+Kf7mx964qcEfXAhAsmo+ 6t87ibCTkdrK2rpFu+x9VxC38aNIw6/sNc81xGrj/HHI1YPrUo8CCBwFPzGVL6Me50oT 97qA== X-Gm-Message-State: AOAM530B55dEqMzj3QlF7e1Xxry3gQdhV4CLXTrRbQdIbeDCyX9uE+TF iUI3+ByIoPhT6DtsjHb0vF1fbSemEIsWWw== X-Received: by 2002:a05:6402:1855:: with SMTP id v21mr2608163edy.310.1617183680850; Wed, 31 Mar 2021 02:41:20 -0700 (PDT) Received: from agape ([5.171.73.44]) by smtp.gmail.com with ESMTPSA id q16sm850906ejd.15.2021.03.31.02.41.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Mar 2021 02:41:20 -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 37/40] staging: rtl8723bs: replace RT_TRACE with public printk wrappers in os_dep/sdio_intf.c Date: Wed, 31 Mar 2021 11:40:05 +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/os_dep/sdio_intf.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c index b6be1423ef75..e99c6f72cff6 100644 --- a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c +++ b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c @@ -160,7 +160,7 @@ static void sdio_deinit(struct dvobj_priv *dvobj) int err; - RT_TRACE(_module_hci_intfs_c_, _drv_notice_, ("+sdio_deinit\n")); + pr_notice("%s+%s\n", DRIVER_PREFIX, __func__); func = dvobj->intf_data.func; @@ -201,7 +201,7 @@ static struct dvobj_priv *sdio_dvobj_init(struct sdio_func *func) psdio->func = func; if (sdio_init(dvobj) != _SUCCESS) { - RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("%s: initialize SDIO Failed!\n", __func__)); + pr_err("%s %s: initialize SDIO Failed!\n", DRIVER_PREFIX, __func__); goto free_dvobj; } rtw_reset_continual_io_error(dvobj); @@ -306,8 +306,7 @@ static struct adapter *rtw_sdio_if1_init(struct dvobj_priv *dvobj, const struct padapter->intf_free_irq = &sdio_free_irq; if (rtw_init_io_priv(padapter, sdio_set_intf_ops) == _FAIL) { - RT_TRACE(_module_hci_intfs_c_, _drv_err_, - ("rtw_drv_init: Can't init io_priv\n")); + pr_err("%s rtw_drv_init: Can't init io_priv\n", DRIVER_PREFIX); goto free_hal_data; } @@ -322,8 +321,8 @@ static struct adapter *rtw_sdio_if1_init(struct dvobj_priv *dvobj, const struct /* 3 7. init driver common data */ if (rtw_init_drv_sw(padapter) == _FAIL) { - RT_TRACE(_module_hci_intfs_c_, _drv_err_, - ("rtw_drv_init: Initialize driver software resource Failed!\n")); + pr_err("%s rtw_drv_init: Initialize driver software resource Failed!\n", + DRIVER_PREFIX); goto free_hal_data; } @@ -406,7 +405,7 @@ static int rtw_drv_init( dvobj = sdio_dvobj_init(func); if (dvobj == NULL) { - RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("initialize device object priv Failed!\n")); + pr_err("%s initialize device object priv Failed!\n", DRIVER_PREFIX); goto exit; } @@ -424,7 +423,7 @@ static int rtw_drv_init( if (sdio_alloc_irq(dvobj) != _SUCCESS) goto free_if2; - RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("-871x_drv - drv_init, success!\n")); + pr_err("%s-871x_drv - drv_init, success!\n", DRIVER_PREFIX); rtw_ndev_notifier_register(); status = _SUCCESS; @@ -447,7 +446,7 @@ static void rtw_dev_remove(struct sdio_func *func) struct dvobj_priv *dvobj = sdio_get_drvdata(func); struct adapter *padapter = dvobj->if1; - RT_TRACE(_module_hci_intfs_c_, _drv_notice_, ("+rtw_dev_remove\n")); + pr_notice("%s+%s\n", DRIVER_PREFIX, __func__); dvobj->processing_dev_remove = true; @@ -479,7 +478,7 @@ static void rtw_dev_remove(struct sdio_func *func) sdio_dvobj_deinit(func); - RT_TRACE(_module_hci_intfs_c_, _drv_notice_, ("-rtw_dev_remove\n")); + pr_notice("%s - %s\n", DRIVER_PREFIX, __func__); } static int rtw_sdio_suspend(struct device *dev) -- 2.20.1