]> asedeno.scripts.mit.edu Git - linux.git/commit
scsi: sd_zbc: Improve report zones error printout
authorDamien Le Moal <damien.lemoal@wdc.com>
Mon, 25 Nov 2019 07:05:18 +0000 (16:05 +0900)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 27 Nov 2019 02:43:22 +0000 (21:43 -0500)
commita35989a0723c53b0364322e39c7a9495336ff7e6
treee1358f48115b8c9e052bada6eac2ba47b094130e
parent45dc8f2d9c94ed74a5e31e63e9136a19a7e16081
scsi: sd_zbc: Improve report zones error printout

In the case of a report zones command failure, instead of simply printing
the host_byte and driver_byte values returned, print a message that is more
human readable and useful, adding sense codes too.

To do so, use the already defined sd_print_sense_hdr() and
sd_print_result() functions by moving the declaration of these functions
into sd.h.

Link: https://lore.kernel.org/r/20191125070518.951717-1-damien.lemoal@wdc.com
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/sd.c
drivers/scsi/sd.h
drivers/scsi/sd_zbc.c