diff options
author | Joe Perches <joe@perches.com> | 2013-04-19 14:44:00 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-19 14:46:50 -0400 |
commit | 191648d03d20229523d9a75b8abef56421298d28 (patch) | |
tree | 2de4891a95fe1d2ee4b8326bb9834033b763d37e /drivers/usb/storage/cypress_atacb.c | |
parent | f1175daa5312dd1b3f5940413c7c41ed195066f7 (diff) |
usb: storage: Convert US_DEBUGP to usb_stor_dbg
Use a more current logging style with dev_printk
where possible.
o Convert uses of US_DEBUGP to usb_stor_dbg
o Add "struct us_data *" to usb_stor_dbg uses
o usb_stor_dbg now uses struct device */dev_vprint_emit
o Removed embedded function names
o Coalesce formats
o Remove trailing whitespace
o Remove useless OOM messages
o Remove useless function entry/exit logging
o Convert some US_DEBUGP uses to dev_info and dev_dbg
Object size is slightly reduced when debugging
is enabled, slightly increased with no debugging
because some initialization and removal messages
are now always emitted.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/storage/cypress_atacb.c')
-rw-r--r-- | drivers/usb/storage/cypress_atacb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/storage/cypress_atacb.c b/drivers/usb/storage/cypress_atacb.c index 070b5c0ebbf9..e4efc7bb833f 100644 --- a/drivers/usb/storage/cypress_atacb.c +++ b/drivers/usb/storage/cypress_atacb.c | |||
@@ -159,7 +159,7 @@ static void cypress_atacb_passthrough(struct scsi_cmnd *srb, struct us_data *us) | |||
159 | if (srb->result == SAM_STAT_CHECK_CONDITION && | 159 | if (srb->result == SAM_STAT_CHECK_CONDITION && |
160 | memcmp(srb->sense_buffer, usb_stor_sense_invalidCDB, | 160 | memcmp(srb->sense_buffer, usb_stor_sense_invalidCDB, |
161 | sizeof(usb_stor_sense_invalidCDB)) == 0) { | 161 | sizeof(usb_stor_sense_invalidCDB)) == 0) { |
162 | US_DEBUGP("cypress atacb not supported ???\n"); | 162 | usb_stor_dbg(us, "cypress atacb not supported ???\n"); |
163 | goto end; | 163 | goto end; |
164 | } | 164 | } |
165 | 165 | ||