diff options
| author | Alexey Kardashevskiy | 2014-06-12 07:41:37 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2014-06-18 08:47:10 +0200 |
| commit | b9e77bc718db3593ffbb56f3a51488cdce4d5af3 (patch) | |
| tree | b5b4f99b0625f15d829cef54375268f64239c3a2 /include/block | |
| parent | scsi-disk: fix bug in scsi_block_new_request() introduced by commit 137745c (diff) | |
| download | qemu-b9e77bc718db3593ffbb56f3a51488cdce4d5af3.tar.gz qemu-b9e77bc718db3593ffbb56f3a51488cdce4d5af3.tar.xz qemu-b9e77bc718db3593ffbb56f3a51488cdce4d5af3.zip | |
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>
Diffstat (limited to 'include/block')
| -rw-r--r-- | include/block/scsi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/block/scsi.h b/include/block/scsi.h index 9ab045b613..edde960d18 100644 --- a/include/block/scsi.h +++ b/include/block/scsi.h @@ -143,6 +143,8 @@ #define READ_CD 0xbe #define SEND_DVD_STRUCTURE 0xbf +const char *scsi_command_name(uint8_t cmd); + /* * SERVICE ACTION IN subcodes */ |
