mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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: Markus Armbruster <armbru@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
6ced55a57d
commit
0343240725
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue