Commit 3055c92c authored by Matthias Maennich's avatar Matthias Maennich Committed by Greg Kroah-Hartman

usb-storage: SCSI glue: use dev_err instead of printk

Follow common practice and retire printk(KERN_ERR ...) in favor of
dev_err().

Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: usb-storage@lists.one-eyed-alien.net
Signed-off-by: default avatarMatthias Maennich <maennich@google.com>
Link: https://lore.kernel.org/r/20191002110312.75749-1-maennich@google.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 54ecb8f7
...@@ -379,8 +379,8 @@ static int queuecommand_lck(struct scsi_cmnd *srb, ...@@ -379,8 +379,8 @@ static int queuecommand_lck(struct scsi_cmnd *srb,
/* check for state-transition errors */ /* check for state-transition errors */
if (us->srb != NULL) { if (us->srb != NULL) {
printk(KERN_ERR "usb-storage: Error in %s: us->srb = %p\n", dev_err(&us->pusb_intf->dev,
__func__, us->srb); "Error in %s: us->srb = %p\n", __func__, us->srb);
return SCSI_MLQUEUE_HOST_BUSY; return SCSI_MLQUEUE_HOST_BUSY;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment