提交 03432407 编写于 作者: M Markus Armbruster 提交者: Kevin Wolf

ide: Fix info qtree for ide-drive.ver

Show the actual default value instead of <null> when the property has
not been set.
Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
Signed-off-by: NKevin Wolf <kwolf@redhat.com>
上级 6ced55a5
......@@ -110,6 +110,9 @@ static int ide_drive_initfn(IDEDevice *dev)
ide_init_drive(s, dev->conf.dinfo, dev->version, serial);
if (!dev->version) {
dev->version = qemu_strdup(s->version);
}
if (!dev->serial) {
dev->serial = qemu_strdup(s->drive_serial_str);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册