diff mbox

[3/5] scsi-disk: Fixup debugging statement

Message ID 1309863815-28236-4-git-send-email-hare@suse.de
State New
Headers show

Commit Message

Hannes Reinecke July 5, 2011, 11:03 a.m. UTC
A debugging statement wasn't converted to the new interface.

Signed-off-by: Hannes Reinecke <hare@suse.de>
---
 hw/scsi-disk.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Paolo Bonzini July 5, 2011, 11:05 a.m. UTC | #1
On 07/05/2011 01:03 PM, Hannes Reinecke wrote:
> A debugging statement wasn't converted to the new interface.
>
> Signed-off-by: Hannes Reinecke<hare@suse.de>
> ---
>   hw/scsi-disk.c |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c
> index c2a99fe..5804662 100644
> --- a/hw/scsi-disk.c
> +++ b/hw/scsi-disk.c
> @@ -1007,7 +1007,7 @@ static int32_t scsi_send_command(SCSIRequest *req, uint8_t *buf)
>
>       command = buf[0];
>       outbuf = (uint8_t *)r->iov.iov_base;
> -    DPRINTF("Command: lun=%d tag=0x%x data=0x%02x", lun, tag, buf[0]);
> +    DPRINTF("Command: lun=%d tag=0x%x data=0x%02x", req->lun, req->tag, buf[0]);
>
>       if (scsi_req_parse(&r->req, buf) != 0) {
>           BADF("Unsupported command length, command %x\n", command);

Acked-by: Paolo Bonzini <pbonzini@redhat.com>
diff mbox

Patch

diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c
index c2a99fe..5804662 100644
--- a/hw/scsi-disk.c
+++ b/hw/scsi-disk.c
@@ -1007,7 +1007,7 @@  static int32_t scsi_send_command(SCSIRequest *req, uint8_t *buf)
 
     command = buf[0];
     outbuf = (uint8_t *)r->iov.iov_base;
-    DPRINTF("Command: lun=%d tag=0x%x data=0x%02x", lun, tag, buf[0]);
+    DPRINTF("Command: lun=%d tag=0x%x data=0x%02x", req->lun, req->tag, buf[0]);
 
     if (scsi_req_parse(&r->req, buf) != 0) {
         BADF("Unsupported command length, command %x\n", command);