Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3003766imm; Sun, 24 Jun 2018 09:12:18 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLNOMy2hyyD1KEjFv5mYv1CmCQj4f1lX7qUvvUD5KDybBNUM1N7c7taj5RY/TgHLnO0KPUS X-Received: by 2002:a17:902:4203:: with SMTP id g3-v6mr9063964pld.315.1529856738436; Sun, 24 Jun 2018 09:12:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529856738; cv=none; d=google.com; s=arc-20160816; b=NVQQKdSb/hvrWwT9f7QaKZEIXhR3TlcuQ+EVCXG07t5O/oQjcaykZhpxJFEwCiMLMP ZvtKLRJbd9c9YdVkO+v8c3viUuv9Mg/uQLTFHQtyTFxD8wzsgcUo1FZo3Ndd2MKEJk2x r9bDYnf92fTjMPaJQ51RfjqA79dCVJKz9Ho9Yk2xCSUhvH2Bq5YaaqJ6EWbpByySBkJV JaAFOgIZGEmUJM6yJ7qCM0E/gaIDqAhtZF1tldY53v+PgmLrbu5FdUHNkBgKtSuGWpQw xdkHWI5mEg384Qqev4jTo2tuirWg7kwHVkNx9dV5bsHByFE4zSGLO1mCmQBZGNabztHl 3plg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=XHKTm/djS/DqO1pyh10Q7PF32ua1SZd4KG2RyOnDzf8=; b=vG24Nw3FjIqQUUSSzoJAksJVnmafT0eSaf+HU0d8Rjp8yMBLc+vm+1SRNQWWyhJtaq j08zxy86fZ2CIC1ehIJbbVuZKg0LUtfF83u6HnjSdceh5CvJ8LisY6owgSFsaIuhAdim Z1zG/+CCCAqp742OA1y8sH0fSTFVIYEqb5s5LWzvW6LAQniTtXfilvgyOuTWhrT3Bltg mT1rfvpIcgCYCKbnXsn3DAso0xArpqeShCQiezht6LynYs5i0s8NbIcvOMiRXL71uSfc T7kXGFYgxSVUAG9jIyDWo0aWsTGfHYwpChWn08xY0Wst8CBU4dD4jeX3uyndYEskktN7 GSlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mjpqLaDa; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id j9-v6si10069726pgc.627.2018.06.24.09.12.04; Sun, 24 Jun 2018 09:12:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mjpqLaDa; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1755537AbeFXQJr (ORCPT + 99 others); Sun, 24 Jun 2018 12:09:47 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:32899 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755190AbeFXPgG (ORCPT ); Sun, 24 Jun 2018 11:36:06 -0400 Received: by mail-wm0-f66.google.com with SMTP id z6-v6so10330422wma.0 for ; Sun, 24 Jun 2018 08:36:06 -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; bh=XHKTm/djS/DqO1pyh10Q7PF32ua1SZd4KG2RyOnDzf8=; b=mjpqLaDaUi/VZ1lDb6yNSQKcuBYw3y4wmQQgxEXTB/VlkyRiliUNDyRr2TZCLWUW0U w/d2rzi88OSoqQKje5jfT1iocxveV44JT6Hf3dGcJ1VA9GZimO+/rmoEb0bOESuZurqC IezJKyzOCOmUEP+mIpgKuWlUUlODK+tof7AUzWxyrRZ/k8PZ5Ijr6Uw8PON4sfaBdT4X bY1zfGa0Qio32r2s9b2SWMC1AUlYgKE1UO1JQIDlxrcaI7MqhqXRpETeC7YhlGTCEezD 5rDBQDjEpbvv0abC2FoegIyuO5ewKFBaGnYNdcJih40vO/SpqNwsBahQM2t6uSlORW+2 kbpQ== 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; bh=XHKTm/djS/DqO1pyh10Q7PF32ua1SZd4KG2RyOnDzf8=; b=VoeuRnFEY5tnAW6Vx1y4U2GL8VR1+X4tBvig+zAyKDRVln25rQNHXMSH6Uh2DFJ528 Ea9t0tDAd1Dq5lvh07yW0Viz59MijHsB0jcsqS5SM1VT2fcQsU3N+SiXa2YfTxCqkPFc /84gtjNsE4Vs6adBojW6aNiAbjhcHsgjD7lpUkwsNuwkDphKRpfhhLCH3k/2J/ycxRJs fRsBRgdgWjKX52l4w3ap6yrRHuaMZGJNWvT8GWuITG4nl3LVHvJ3PZ0aa5TP8Namil9K l7zIhB1TofhiBW+mW8ex0n7mepJ1fiKsdWyqISGFjsjR2fwQh3Te8XWCoYbMjs5Jallo fr2A== X-Gm-Message-State: APt69E3hJ6A7y/6NfHk48Dp5HNbC7cxIK0mPhanMyxyg0QKfLyIY+XoP PSfbmMHyur4CGROskKGkEJUm82Pl X-Received: by 2002:a1c:8ec1:: with SMTP id q184-v6mr7307767wmd.104.1529854565178; Sun, 24 Jun 2018 08:36:05 -0700 (PDT) Received: from localhost.localdomain (host86-190-130-185.range86-190.btcentralplus.com. [86.190.130.185]) by smtp.gmail.com with ESMTPSA id j10-v6sm1505813wro.53.2018.06.24.08.36.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Jun 2018 08:36:04 -0700 (PDT) From: John Whitmore To: linux-kernel@vger.kernel.org Cc: devel@driverdev.osuosl.org, gregkh@linuxfoundation.org, John Whitmore Subject: [PATCH v3 5/8] staging: rtl8192u: Use %s and __func__ instead of hardcoded string - Style Date: Sun, 24 Jun 2018 16:34:51 +0100 Message-Id: <20180624153454.27356-6-johnfwhitmore@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180624153454.27356-1-johnfwhitmore@gmail.com> References: <20180624153454.27356-1-johnfwhitmore@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changed a number of hard coded function names to use %s and __func__ Mailing list response suggest that there is a better method for debugging using netdev_dbg(). I can't argue with that, but for the moment this change will clear the checkpatch.pl Warning. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c b/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c index 0bd41ded87c9..6793a9aabb2f 100644 --- a/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c +++ b/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c @@ -534,7 +534,7 @@ void HTConstructCapabilityElement(struct ieee80211_device *ieee, u8 *posHTCap, u //u8 bIsDeclareMCS13; if (!posHTCap || !pHT) { - IEEE80211_DEBUG(IEEE80211_DL_ERR, "posHTCap or pHTInfo can't be null in HTConstructCapabilityElement()\n"); + IEEE80211_DEBUG(IEEE80211_DL_ERR, "posHTCap or pHTInfo can't be null in %s\n", __func__); return; } memset(posHTCap, 0, *len); @@ -646,7 +646,7 @@ void HTConstructInfoElement(struct ieee80211_device *ieee, u8 *posHTInfo, u8 *le PHT_INFORMATION_ELE pHTInfoEle = (PHT_INFORMATION_ELE)posHTInfo; if (!posHTInfo || !pHTInfoEle) { - IEEE80211_DEBUG(IEEE80211_DL_ERR, "posHTInfo or pHTInfoEle can't be null in HTConstructInfoElement()\n"); + IEEE80211_DEBUG(IEEE80211_DL_ERR, "posHTInfo or pHTInfoEle can't be null in %s\n", __func__); return; } @@ -710,7 +710,7 @@ void HTConstructInfoElement(struct ieee80211_device *ieee, u8 *posHTInfo, u8 *le void HTConstructRT2RTAggElement(struct ieee80211_device *ieee, u8 *posRT2RTAgg, u8 *len) { if (!posRT2RTAgg) { - IEEE80211_DEBUG(IEEE80211_DL_ERR, "posRT2RTAgg can't be null in HTConstructRT2RTAggElement()\n"); + IEEE80211_DEBUG(IEEE80211_DL_ERR, "posRT2RTAgg can't be null in %s\n", __func__); return; } memset(posRT2RTAgg, 0, *len); @@ -758,7 +758,7 @@ void HTConstructRT2RTAggElement(struct ieee80211_device *ieee, u8 *posRT2RTAgg, static u8 HT_PickMCSRate(struct ieee80211_device *ieee, u8 *pOperateMCS) { if (!pOperateMCS) { - IEEE80211_DEBUG(IEEE80211_DL_ERR, "pOperateMCS can't be null in HT_PickMCSRate()\n"); + IEEE80211_DEBUG(IEEE80211_DL_ERR, "pOperateMCS can't be null in %s\n", __func__); return false; } @@ -819,7 +819,7 @@ u8 HTGetHighestMCSRate(struct ieee80211_device *ieee, u8 *pMCSRateSet, u8 *pMCSF u8 availableMcsRate[16]; if (!pMCSRateSet || !pMCSFilter) { - IEEE80211_DEBUG(IEEE80211_DL_ERR, "pMCSRateSet or pMCSFilter can't be null in HTGetHighestMCSRate()\n"); + IEEE80211_DEBUG(IEEE80211_DL_ERR, "pMCSRateSet or pMCSFilter can't be null in %s\n", __func__); return false; } for (i = 0; i < 16; i++) @@ -901,7 +901,7 @@ void HTOnAssocRsp(struct ieee80211_device *ieee) static u8 EWC11NHTInfo[] = {0x00, 0x90, 0x4c, 0x34}; // For 11n EWC definition, 2007.07.17, by Emily if (!pHTInfo->bCurrentHTSupport) { - IEEE80211_DEBUG(IEEE80211_DL_ERR, "<=== HTOnAssocRsp(): HT_DISABLE\n"); + IEEE80211_DEBUG(IEEE80211_DL_ERR, "<=== %s: HT_DISABLE\n", __func__); return; } IEEE80211_DEBUG(IEEE80211_DL_HT, "===> HTOnAssocRsp_wq(): HT_ENABLE\n"); -- 2.17.1