diff mbox

[Bug,1181354,NEW] assert failed in scsi-bus.c line 1539 in SCSI_XFER_NONE

Message ID 51968FD1.2010805@redhat.com
State New
Headers show

Commit Message

Paolo Bonzini May 17, 2013, 8:15 p.m. UTC
Il 17/05/2013 20:37, TC1988 ha scritto:
> Public bug reported:
> 
> Every time I format a SCSI hard disk (on ID 0) with Windows NT or DOS,
> QEMU crashes with an assertion failure on scsi-bus.c, any help?
> 
> ** Affects: qemu
>      Importance: Undecided
>          Status: New
> 

What SCSI adapter (QEMU command line)?

Please apply this patch and reproduce:


Paolo
diff mbox

Patch

diff --git a/hw/scsi/scsi-disk.c b/hw/scsi/scsi-disk.c
index c8d2a99..57b0a4b 100644
--- a/hw/scsi/scsi-disk.c
+++ b/hw/scsi/scsi-disk.c
@@ -2234,8 +2234,7 @@  static SCSIRequest *scsi_new_request(SCSIDevice *d, uint32_t tag, uint32_t lun,
     }
     req = scsi_req_alloc(ops, &s->qdev, tag, lun, hba_private);
 
-#ifdef DEBUG_SCSI
-    DPRINTF("Command: lun=%d tag=0x%x data=0x%02x", lun, tag, buf[0]);
+    printf("Command: lun=%d tag=0x%x data=0x%02x", lun, tag, buf[0]);
     {
         int i;
         for (i = 1; i < req->cmd.len; i++) {
@@ -2243,7 +2242,6 @@  static SCSIRequest *scsi_new_request(SCSIDevice *d, uint32_t tag, uint32_t lun,
         }
         printf("\n");
     }
-#endif
 
     return req;
 }