Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp851654ybl; Wed, 21 Aug 2019 06:34:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqx2sTnegHNMARf3xwQjIVBZ7e+BTbJSRj170hk72MNsR89AVQDCyiBRcDgr9meRjHEfjXjH X-Received: by 2002:a17:902:e83:: with SMTP id 3mr1543950plx.319.1566394440570; Wed, 21 Aug 2019 06:34:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566394440; cv=none; d=google.com; s=arc-20160816; b=zEQAiXKu227vOMUL1kaM9+gWxyvQCtDUpOBGnRo3kVFPgPgKgSuizz3DlE8cdgzxMj DabBoGVanorOR4kjRTXrFyLSWkVVX0c63AAU9RwS0ApOpGkZqj5TZ3O9hUuRbHtFn08u M4yuBs/gS+QGbt2g/VdbAabCILkoCSz4bwippdxx1tbPMeN4NhEjpurARkyBiiJfePmv cNvbJzs15TYteryruEhZjH9rUV9UW3GnltrooPcM3QQ4TDE2Hb4QDFj9eblj3KzOO4F5 HtYLjsJ9K198P7DoM2vmd8UWZO9mJCiuopqSygz7C6Sf3A7wYvHLCpaIvWVqlAHtI45Q KncA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=nGEGwBAbz3G1/1oBPZ8ZB+QymPVZdVGXluasmp9yERQ=; b=BQoKTzH7qA74ZzQaRtQrEHNQkkttFt9bIKXKMXQGI02RizK41QItN3t6yK5l338HZm Y84U/vF990OB4QujA8+gbwiW4VBoObXzaJeyTOUQRux8ksg4QUqCnjxoRo5tKc3EiuNl 6kt3DWmOJs+OewYn7Az6bL/DlfFQBV/rd2OO0SyaSAQE/xuc/9zEI8CE58JTZGzhjwho a5/n+5E8cKzPB6ik2v95RgrJyj0hFPD5dzx6eUaL3q9jluBt/EjqaNujDvSsLy9zmbh8 i6g4wfrs+cKLikbo2U57Xesoz8q+hVGXLxZUnyxp601iTL8WhCf9DArZo4AzXuXLAzvM bBfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JcNleWB0; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q21si14552838pgt.432.2019.08.21.06.33.44; Wed, 21 Aug 2019 06:34:00 -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=@kernel.org header.s=default header.b=JcNleWB0; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728995AbfHUNcs (ORCPT + 99 others); Wed, 21 Aug 2019 09:32:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:58088 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728921AbfHUNcr (ORCPT ); Wed, 21 Aug 2019 09:32:47 -0400 Received: from localhost (unknown [12.166.174.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 474082339F; Wed, 21 Aug 2019 13:32:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566394366; bh=gS9+Zgp02i/oPq20iw9CL1Rdtek7gUjyf68nwL7gH7U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JcNleWB00iIOV0x4il3pTwc83WqdjKhl3vUhDb/khQodLyep/4Ec2/W/N11QBlAqA jjqkPfioDTq0OzxRGn2QY7pEHvx0RuDmff8U9ERR/YmAA740FrTraYC7UAbLOKgx85 oBtCuXpBL3hieVc5uvQNFHKKxm1Mv2VtYOKU2Rk4= Date: Wed, 21 Aug 2019 06:32:45 -0700 From: Greg KH To: Thomas Gleixner Cc: Matthias Maennich , linux-kernel@vger.kernel.org, kernel-team@android.com, arnd@arndb.de, geert@linux-m68k.org, hpa@zytor.com, jeyu@kernel.org, joel@joelfernandes.org, kstewart@linuxfoundation.org, linux-arch@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-modules@vger.kernel.org, linux-scsi@vger.kernel.org, linux-usb@vger.kernel.org, lucas.de.marchi@gmail.com, maco@android.com, maco@google.com, michal.lkml@markovi.net, mingo@redhat.com, oneukum@suse.com, pombredanne@nexb.com, sam@ravnborg.org, sspatil@google.com, stern@rowland.harvard.edu, usb-storage@lists.one-eyed-alien.net, x86@kernel.org, yamada.masahiro@socionext.com Subject: Re: [PATCH v3 09/11] usb-storage: remove single-use define for debugging Message-ID: <20190821133245.GA4624@kroah.com> References: <20190813121733.52480-1-maennich@google.com> <20190821114955.12788-1-maennich@google.com> <20190821114955.12788-10-maennich@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 21, 2019 at 03:21:22PM +0200, Thomas Gleixner wrote: > On Wed, 21 Aug 2019, Matthias Maennich wrote: > > > USB_STORAGE was defined as "usb-storage: " and used in a single location > > as argument to printk. In order to be able to use the name > > 'USB_STORAGE', drop the definition and use the string directly for the > > printk call. > > > > Signed-off-by: Matthias Maennich > > --- > > drivers/usb/storage/debug.h | 2 -- > > drivers/usb/storage/scsiglue.c | 2 +- > > 2 files changed, 1 insertion(+), 3 deletions(-) > > > > diff --git a/drivers/usb/storage/debug.h b/drivers/usb/storage/debug.h > > index 6d64f342f587..16ce06039a4d 100644 > > --- a/drivers/usb/storage/debug.h > > +++ b/drivers/usb/storage/debug.h > > @@ -29,8 +29,6 @@ > > > > #include > > > > -#define USB_STORAGE "usb-storage: " > > - > > #ifdef CONFIG_USB_STORAGE_DEBUG > > void usb_stor_show_command(const struct us_data *us, struct scsi_cmnd *srb); > > void usb_stor_show_sense(const struct us_data *us, unsigned char key, > > diff --git a/drivers/usb/storage/scsiglue.c b/drivers/usb/storage/scsiglue.c > > index 05b80211290d..df4de8323eff 100644 > > --- a/drivers/usb/storage/scsiglue.c > > +++ b/drivers/usb/storage/scsiglue.c > > @@ -379,7 +379,7 @@ static int queuecommand_lck(struct scsi_cmnd *srb, > > > > /* check for state-transition errors */ > > if (us->srb != NULL) { > > - printk(KERN_ERR USB_STORAGE "Error in %s: us->srb = %p\n", > > + printk(KERN_ERR "usb-storage: Error in %s: us->srb = %p\n", > > __func__, us->srb); > > The proper fix for this is to use pr_fmt and convert the printk to pr_err(). Yeah, that's the correct long-term fix, I think someone already sent that in for the usb tree, where I have taken this patch already. thanks, greg k-h