Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6953519ybe; Wed, 18 Sep 2019 11:45:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqyPwFLDwntMxeH4ZUHlRnWwZccC+oZC9tx9Rv3v3CPC8Stil0liiupeNsCL0jiG7s7JT7Qp X-Received: by 2002:a05:6402:65a:: with SMTP id u26mr11910637edx.86.1568832338795; Wed, 18 Sep 2019 11:45:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568832338; cv=none; d=google.com; s=arc-20160816; b=a1JKEFln+nJhcvt0Ix7uwyV5IAmqkAg50enoqXRm28wfWvcxuFzoZYDeMK6QOyw+9Q /pQH1o7tNrIYxSpFfLmrRnmcrrs9DiCXVKLYb7x+2iLLNEHM9XvQ+2IcwDWNcJtJ2CXS 2W70hRvJbj6qx0fS4pr8wpS1qnmo/J+7kUh/iHl2Qxjhg5nRhC4CVTzY92mwpQD9d1Lp kfjl770Uq5oF8ckl+LdmS0a54sfzl7PfcMuV+UAz1b87j+A1+sEis+CVFLsDcpE8QFSU EdVhTMW7nyEaskcPok2McOsiRAAA1PeridzP1oEeappSML5GnLhNcY2L+TNzJImZ4TJF SAmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to :subject:cc:to:from:date; bh=LWpZWwfQakgCOJ+RU+Y4xFmGAFHkkaKlpoge4OG6f4g=; b=YvUEySddRbZucJtQW9fDPoFMTMPFdfG7+yZrZS/keUFxSLfdPwhdOVh0gJv7zc8q4z sfLni8lJ4z8HxOTgq9C/oq5Ofs9glZO8KGqi5M+gD8xx3cF33bdvAUUJEIbDzmTywzit U1NH9+QSjQNMjdZ5ksjoKM25QTATPatkDBGFeCqpWL3HjOtoZSAdmzXjHKZkPeygAYzI Dml3Qy+HYjZGhKvKtCjeEw3zcAx42nyZy9+K0MWhV60mvTc9Zeo/e+nH3c+gCAjtCYhD wqtzKwzfTuZ7/WmgARyUTmm/2o444Db4Vgi6oKP6l7Ko7iNbVdV1/vPH2T7JqGMuxZUd arpg== ARC-Authentication-Results: i=1; mx.google.com; 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 h18si3185194ejx.68.2019.09.18.11.45.15; Wed, 18 Sep 2019 11:45:38 -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; 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 S2388858AbfIRSjx (ORCPT + 99 others); Wed, 18 Sep 2019 14:39:53 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:54366 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1725899AbfIRSjx (ORCPT ); Wed, 18 Sep 2019 14:39:53 -0400 Received: (qmail 7207 invoked by uid 2102); 18 Sep 2019 14:39:52 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 18 Sep 2019 14:39:52 -0400 Date: Wed, 18 Sep 2019 14:39:52 -0400 (EDT) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Matthias Maennich cc: linux-kernel@vger.kernel.org, , Greg Kroah-Hartman , Subject: Re: [PATCH v2] usb-storage: SCSI glue: use pr_fmt and pr_err In-Reply-To: <20190918175304.219849-1-maennich@google.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 18 Sep 2019, Matthias Maennich wrote: > Follow common practice and retire printk(KERN_ERR ...) in favor of > pr_fmt and dev_err(). > > Cc: Alan Stern > Cc: Greg Kroah-Hartman > Cc: usb-storage@lists.one-eyed-alien.net > Signed-off-by: Matthias Maennich > --- > drivers/usb/storage/scsiglue.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/drivers/usb/storage/scsiglue.c b/drivers/usb/storage/scsiglue.c > index 6737fab94959..afc4e3221369 100644 > --- a/drivers/usb/storage/scsiglue.c > +++ b/drivers/usb/storage/scsiglue.c > @@ -28,6 +28,8 @@ > * status of a command. > */ > > +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt > + What's this here for? Alan Stern > #include > #include > #include > @@ -379,8 +381,8 @@ 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", > - __func__, us->srb); > + dev_err(&us->pusb_intf->dev, > + "Error in %s: us->srb = %p\n", __func__, us->srb); > return SCSI_MLQUEUE_HOST_BUSY; > } > >