Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp4525083pxy; Tue, 27 Apr 2021 07:06:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxclYRuWmD382jBO+azwY1l41YoFcf9O70/telFjMiK2Cd2I3X2hzFfgF27i024uqRRe4N6 X-Received: by 2002:a17:906:cb2:: with SMTP id k18mr24081646ejh.183.1619532373743; Tue, 27 Apr 2021 07:06:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619532373; cv=none; d=google.com; s=arc-20160816; b=r3B0TWggHm3Zb/Cr+8uBjQ37WNUryHpR4iLdE0bUUZ9w1nLVMLQUuDfBSN+XRqm8Nq N275W1LGW4SarnjIuX9HTBFtKeBnMLDTr8+QcGFUMcdDqhhh3AxkNNG+nxRcwR4FfTzc iNNt9ldDQ7UsPx0wXML6K02FOlcD9YYCCGA3/5ayTZCFTN/w02t1fmdahdAaJ94F+XEL amKAy0QdE97Y5yv7Ox+/Zfz5RgxRA5eBOT8GCy+o7bhsOGDctS4m1M2Ma8hC5XfCT8Gm ym+eVEf0fQKHe5iJ1iVjWNGfvIfwQO6eBfPjT67/UslJFQ6sPqcO0LoyPeS4TdkQLlzl +OUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=sekifJy8pc2effIwTmh+4v37CIf8M48NQBH3pTUqV50=; b=zLcIzajXW4C5x/PmgSyPmKFjNMurtI+0vwjW8PxMVg2SP2wSBF0Hdp2U3ceOo8CLIn VDVpDoNxfaEHEACZKvU62maDIfLZci4VSW7XOBBaw85UbNNeKEWfUE96nYJ7MV2/+M/f mU/Ih0vBkVFERlzHBQBONrqkKnzxMPI5VeU03GeXhg+giY1HbYgA2As8/CTX/CvXRODL WYkBuRqa3a49kSYoKp8b90MBrEQZ6JNWlH1g5t97JJOD1p+xmCBR3ohIbjj2mXn9O2U/ Xib0zT4OKllYjkmh/22jX15mJMvSvNUmzGQ4ns9urXwAMdJsDt9DGBNK2s0dxyzLADy3 27pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=y0whrowB; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y23si1463418edu.555.2021.04.27.07.05.34; Tue, 27 Apr 2021 07:06:13 -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=@linuxfoundation.org header.s=korg header.b=y0whrowB; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236602AbhD0OD7 (ORCPT + 99 others); Tue, 27 Apr 2021 10:03:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:52880 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236074AbhD0ODv (ORCPT ); Tue, 27 Apr 2021 10:03:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 063CD61001; Tue, 27 Apr 2021 14:03:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619532187; bh=/oRC6bU/WlpKeL0v44CHbiXsIRtQhAw5FoWqv7sbxi4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=y0whrowBP4F3bTfk9npzU6Qub6BIsl7Y0U3P8/e4EjxyHrUqoYVyrbrCFXdEbyaLS 7e6o58/riAmhZkpGSKxvwo2FsImDCNEBJw9NrVrHdpOi3QrPrMbC42czl1l/XPjZYe S8IF09ipjqT1Igu3cBUjPS85xBFgdmP2w9NnOXwg= Date: Tue, 27 Apr 2021 16:03:04 +0200 From: Greg KH To: Fabio Aiuto Cc: joe@perches.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 50/50] staging: rtl8723bs: macro DRIVER_PREFIX expands to lowercase driver name Message-ID: References: <20210427124134.GA1399@agape.jhs> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210427124134.GA1399@agape.jhs> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 27, 2021 at 02:41:35PM +0200, Fabio Aiuto wrote: > On Tue, Apr 27, 2021 at 01:04:09PM +0200, Greg KH wrote: > > On Sat, Apr 24, 2021 at 11:02:33AM +0200, Fabio Aiuto wrote: > > > macro DRIVER_PREFIX expands to lowercase driver name. > > > > > > Signed-off-by: Fabio Aiuto > > > --- > > > drivers/staging/rtl8723bs/include/rtw_debug.h | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/drivers/staging/rtl8723bs/include/rtw_debug.h b/drivers/staging/rtl8723bs/include/rtw_debug.h > > > index 189f02a8300a..3a5b083e95a1 100644 > > > --- a/drivers/staging/rtl8723bs/include/rtw_debug.h > > > +++ b/drivers/staging/rtl8723bs/include/rtw_debug.h > > > @@ -7,7 +7,7 @@ > > > #ifndef __RTW_DEBUG_H__ > > > #define __RTW_DEBUG_H__ > > > > > > -#define DRIVER_PREFIX "RTL8723BS: " > > > +#define DRIVER_PREFIX "rtl8723bs: " > > > > KBUILD_MODNAME should be used here, in the future. > > ok, got it > > > > > But really, this shouldn't be needed at all, it's kind of pointless (if > > it is being used, then odds are the places it is being used is wrong...) > > > > thanks, > > > > greg k-h > > fabio@agape:~/src/git/kernels/staging$ grep -r DRIVER_PREFIX drivers/staging/rtl8723bs/ > drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c: print_hex_dump_debug(DRIVER_PREFIX ": u1H2CRsvdPageParm:", DUMP_PREFIX_NONE, > drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c: print_hex_dump_debug(DRIVER_PREFIX ": u1H2CMediaStatusRptParm:", DUMP_PREFIX_NONE, > drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c: print_hex_dump_debug(DRIVER_PREFIX ": u1H2CMacIdConfigParm:", DUMP_PREFIX_NONE, > drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c: print_hex_dump_debug(DRIVER_PREFIX ": u1H2CRssiSettingParm:", DUMP_PREFIX_NONE, > drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c: print_hex_dump_debug(DRIVER_PREFIX ": u1H2CPwrModeParm:", DUMP_PREFIX_NONE, > drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c: print_hex_dump_debug(DRIVER_PREFIX ": u1H2CPsTuneParm:", DUMP_PREFIX_NONE, > drivers/staging/rtl8723bs/hal/hal_com.c: print_hex_dump_debug(DRIVER_PREFIX ": c2h_evt_read(): ", DUMP_PREFIX_NONE, > drivers/staging/rtl8723bs/hal/hal_com.c: print_hex_dump_debug(DRIVER_PREFIX ": c2h_evt_read(): Command Content:\n", > drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c: print_hex_dump_debug(DRIVER_PREFIX ": C2HPacketHandler_8723B(): Command Content:\n", Drivers should not be dumping hex data like this to the kernel log, I bet they can all be removed :) thanks, greg k-h