From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9F7A82CA3 for ; Sun, 9 Jan 2022 21:54:36 +0000 (UTC) Received: by mail-wr1-f46.google.com with SMTP id l10so23227906wrh.7 for ; Sun, 09 Jan 2022 13:54:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philpotter-co-uk.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Hv6GKoLKoAgQtrfvNhQxv0aNjpwK6o2iQIchk0LCYiA=; b=cEhZqtjI6Tsj63Rx8MazVj6+PPTi5P3cmIJ2g0RCSlVg4mD1PikZVdbLwyeRl1HjaG qp6lpor951pdRl2IAwV/N4CLUKXbBpucveS7U8534e0jUfpbxl2wjWRd4UX7FkvNEn4T 17qSNxrBFr7K+Tf5MxauZzbji7D4WT4f6EHSjSUgaUSXzSk5+m6SysE4k+Q17ZETzPIw U8O+lqM2IHhYwdqzwf0RmIrFYsmiHgubljr2FYGJ+0RumZVbiepA8t6XlsYB6Q2isvYF WAUT4SY+KqsNCka3fNv+omxhgbdAaeacttooGdF381/mfbGB/L3B5ssQMbFD8eAClyNw R1Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Hv6GKoLKoAgQtrfvNhQxv0aNjpwK6o2iQIchk0LCYiA=; b=B6gWIhcrTXakicVklAf3nEqDhQ3ewYMCZ3lyDhAkISGGnJx5QjKOZ5xBzypCXHuqYS oqo/D58WE22pFFkDSgyRw1s7kL0N2f5eU6hdXvjMzzQKChd4G6USMJ6X6159YmZZVYne R02SeoqTbQO1Fm3TOw0SYNlkXaEK7ltmuD9IjbPZI/3/Sb//80C5HvV4SED/uq/yIQTQ Fr+jKJGFLQ4HDPz5MW+Wzzn8aS0NJydo2WoQ5PUrjY2aryCfKw5pErarbuFZXjnUF9kd T6brpc6GaDmb5sO+noka5DPRwmibIPnQ042JpDk0Gx6RNMGNkitnYSINooiqablAQgm1 yIFw== X-Gm-Message-State: AOAM532sSeqaKdq5pGB1FixY6MoZUprlGrgsRaHsL3FGz6T2ChNKWvzo aoQ09qcOFogiRTxQf4bA4t5oHg== X-Google-Smtp-Source: ABdhPJyIC20YEkY3frcaHfTb2KnJwAKDFs2xhjGDz8Wx6E7M95pKEkKFjvnUJ8IH8SdnxdxtThy1EQ== X-Received: by 2002:adf:e444:: with SMTP id t4mr4860826wrm.325.1641765275062; Sun, 09 Jan 2022 13:54:35 -0800 (PST) Received: from localhost.localdomain (d.f.5.e.6.6.b.1.e.6.2.7.e.5.c.8.0.a.1.e.e.d.f.d.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:dfde:e1a0:8c5e:726e:1b66:e5fd]) by smtp.gmail.com with ESMTPSA id r13sm5065650wmq.28.2022.01.09.13.54.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jan 2022 13:54:34 -0800 (PST) From: Phillip Potter To: gregkh@linuxfoundation.org Cc: Larry.Finger@lwfinger.net, straube.linux@gmail.com, martin@kaiser.cx, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 7/7] staging: r8188eu: convert DBG_88E calls in core/rtw_sta_mgt.c Date: Sun, 9 Jan 2022 21:54:27 +0000 Message-Id: <20220109215427.887-8-phil@philpotter.co.uk> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220109215427.887-1-phil@philpotter.co.uk> References: <20220109215427.887-1-phil@philpotter.co.uk> Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Convert the DBG_88E macro calls in core/rtw_sta_mgt.c to use pr_debug, as their information may be useful to observers, and this gets the driver closer to the point of being able to remove DBG_88E itself. These calls are at points in the call chain where use of dev_dbg or netdev_dbg isn't possible due to lack of device pointer, so plain pr_debug is appropriate here. Signed-off-by: Phillip Potter --- drivers/staging/r8188eu/core/rtw_sta_mgt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/r8188eu/core/rtw_sta_mgt.c b/drivers/staging/r8188eu/core/rtw_sta_mgt.c index 54561ff239a0..de5406a5870c 100644 --- a/drivers/staging/r8188eu/core/rtw_sta_mgt.c +++ b/drivers/staging/r8188eu/core/rtw_sta_mgt.c @@ -104,7 +104,7 @@ inline int rtw_stainfo_offset(struct sta_priv *stapriv, struct sta_info *sta) int offset = (((u8 *)sta) - stapriv->pstainfo_buf) / sizeof(struct sta_info); if (!stainfo_offset_valid(offset)) - DBG_88E("%s invalid offset(%d), out of range!!!", __func__, offset); + pr_debug("invalid offset(%d), out of range!!!", offset); return offset; } @@ -112,7 +112,7 @@ inline int rtw_stainfo_offset(struct sta_priv *stapriv, struct sta_info *sta) inline struct sta_info *rtw_get_stainfo_by_offset(struct sta_priv *stapriv, int offset) { if (!stainfo_offset_valid(offset)) - DBG_88E("%s invalid offset(%d), out of range!!!", __func__, offset); + pr_debug("invalid offset(%d), out of range!!!", offset); return (struct sta_info *)(stapriv->pstainfo_buf + offset * sizeof(struct sta_info)); } -- 2.33.1