diff --git a/hw/ide/qdev.c b/hw/ide/qdev.c index b4a467116ea0ba0fcbe85209a27248ce5639229c..efab95b3208fcc3a62a20bfc0fc6d0d48f78e046 100644 --- a/hw/ide/qdev.c +++ b/hw/ide/qdev.c @@ -59,7 +59,7 @@ static char *idebus_get_fw_dev_path(DeviceState *dev) { char path[30]; - snprintf(path, sizeof(path), "%s@%d", qdev_fw_name(dev), + snprintf(path, sizeof(path), "%s@%x", qdev_fw_name(dev), ((IDEBus*)dev->parent_bus)->bus_id); return g_strdup(path);