[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [Bug 1181354] [NEW] assert failed in scsi-bus.c line 15
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [Bug 1181354] [NEW] assert failed in scsi-bus.c line 1539 in SCSI_XFER_NONE |
Date: |
Fri, 17 May 2013 22:15:13 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4 |
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:
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;
}
Paolo
[Prev in Thread] |
Current Thread |
[Next in Thread] |