Revision a5cf8262 hw/scsi-bus.c

b/hw/scsi-bus.c
1723 1723
static char *scsibus_get_fw_dev_path(DeviceState *dev)
1724 1724
{
1725 1725
    SCSIDevice *d = SCSI_DEVICE(dev);
1726
    char path[100];
1727

  
1728
    snprintf(path, sizeof(path), "channel@%x/%s@%x,%x", d->channel,
1729
             qdev_fw_name(dev), d->id, d->lun);
1730

  
1731
    return strdup(path);
1726
    return g_strdup_printf("channel@%x/%s@%x,%x", d->channel,
1727
                           qdev_fw_name(dev), d->id, d->lun);
1732 1728
}
1733 1729

  
1734 1730
SCSIDevice *scsi_device_find(SCSIBus *bus, int channel, int id, int lun)

Also available in: Unified diff