From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BD229C64EC4 for ; Wed, 8 Mar 2023 16:54:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229762AbjCHQyK (ORCPT ); Wed, 8 Mar 2023 11:54:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229910AbjCHQyA (ORCPT ); Wed, 8 Mar 2023 11:54:00 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B7F9B7180 for ; Wed, 8 Mar 2023 08:53:39 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id DBA21B81D31 for ; Wed, 8 Mar 2023 16:53:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 497C3C433EF; Wed, 8 Mar 2023 16:53:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1678294416; bh=4+zJsyme2mSgSvWgH8oHJzEqeQsM0feQlu1GnzXc8z4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oYSc9bs3VPUQ/mScOwSc6RoWVddMaySx5+wqI86Tt13Do0qy5mBmljMP+4l+zD15T ZY1ziadz309957otbGSRSYnUdaBVmXQ5VmyW2QUH9uQjbdb37qa8A3QKvyIjYyKLzX pz9zuZfGYoaIkyR4vbKLgNNcO/LE64l86ub1sS4I= Date: Wed, 8 Mar 2023 17:53:33 +0100 From: Greg Kroah-Hartman To: Leonid Pershin Cc: Dan Carpenter , Tong Zhang , Rebecca Mckeever , Deepak R Varma , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] staging: rtl8192u: remove split in user-visible string Message-ID: References: <20230223193559.157880-1-leonid.pershin@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230223193559.157880-1-leonid.pershin@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 23, 2023 at 10:35:57PM +0300, Leonid Pershin wrote: > According to coding style, user-visible strings in printk() > function calls cannot be split across multiple lines. > Issue found with checkpatch.pl. > > Signed-off-by: Leonid Pershin > --- > Changes in v2: > - Replace printk(KERN_DEBUG...) with pr_debug() Now you are doing two different things, please only do one thing per patch. > > drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c > index 9bfd24ad46b6..c378bdff453b 100644 > --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c > +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c > @@ -72,16 +72,14 @@ static void *ieee80211_tkip_init(int key_idx) > > priv->tx_tfm_michael = crypto_alloc_shash("michael_mic", 0, 0); > if (IS_ERR(priv->tx_tfm_michael)) { > - printk(KERN_DEBUG "ieee80211_crypt_tkip: could not allocate " > - "crypto API michael_mic\n"); > + pr_debug("ieee80211_crypt_tkip: could not allocate crypto API michael_mic\n"); Are you sure you need the prefix now that you are using pr_debug()? And as this is a driver, why not use the networking debug macros instead? > priv->tx_tfm_michael = NULL; > goto fail; > } > > priv->rx_tfm_michael = crypto_alloc_shash("michael_mic", 0, 0); > if (IS_ERR(priv->rx_tfm_michael)) { > - printk(KERN_DEBUG "ieee80211_crypt_tkip: could not allocate " > - "crypto API michael_mic\n"); > + pr_debug("ieee80211_crypt_tkip: could not allocate crypto API michael_mic\n"); Same here, do you still need the prefix and why not dev_dbg() or the network version? thanks, greg k-h