]> err.no Git - linux-2.6/commit
[SCSI] constants.c: cleanup, verbose result printing
authorMartin K. Petersen <martin.petersen@oracle.com>
Wed, 28 Feb 2007 03:39:44 +0000 (22:39 -0500)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Sun, 11 Mar 2007 16:14:02 +0000 (11:14 -0500)
commit684b7fe976554d12e6266d7280c87a0f3feff02e
tree42037688e8867faf8e859096985e6e0c19b13474
parent862794fa3fd4c8a44ee22582418736c93e0d3c3a
[SCSI] constants.c: cleanup, verbose result printing

Clean up constants.c and make result printing more user friendly:

 - Refactor the command and sense functions so that the actual
   formatting can be called from the various helper functions with the
   correct prefix.

 - Replace scsi_print_hostbyte() and scsi_print_driverbyte() with
   scsi_print_result() which is verbose when CONFIG_SCSI_CONSTANTS is
   on.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/constants.c
include/scsi/scsi_dbg.h