Revision 407f879a
b/hw/scsi-disk.c | ||
---|---|---|
346 | 346 |
|
347 | 347 |
case 0x80: /* Device serial number, optional */ |
348 | 348 |
{ |
349 |
const char *serial = req->dev->dinfo->serial ?: "0"; |
|
349 |
const char *serial = req->dev->dinfo->serial ? |
|
350 |
req->dev->dinfo->serial : "0"; |
|
350 | 351 |
int l = strlen(serial); |
351 | 352 |
|
352 | 353 |
if (l > req->cmd.xfer) |
Also available in: Unified diff