]> git.proxmox.com Git - mirror_qemu.git/commit
scsi: Print command name in debug
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Thu, 12 Jun 2014 05:41:37 +0000 (15:41 +1000)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 18 Jun 2014 06:47:10 +0000 (08:47 +0200)
commitb9e77bc718db3593ffbb56f3a51488cdce4d5af3
treeb5b4f99b0625f15d829cef54375268f64239c3a2
parent2fe5a9f73b3446690db2cae8a58473b0b4beaa32
scsi: Print command name in debug

This makes scsi_command_name() public.

This makes use of scsi_command_name() in debug output for scsi-disk and
spapr-vscsi host bus adapter. Before this, SCSI used to print hex numbers
instead of human-friendly strings.

This adds GET_EVENT_STATUS_NOTIFICATION and READ_DISC_INFORMATION to
the list of SCSI commands supported by scsi_command_name().

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/scsi-bus.c
hw/scsi/scsi-disk.c
hw/scsi/spapr_vscsi.c
include/block/scsi.h