qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 17/27] ide: Fix info qtree for ide-drive.ver


From: Kevin Wolf
Subject: [Qemu-devel] [PATCH 17/27] ide: Fix info qtree for ide-drive.ver
Date: Fri, 4 Jun 2010 18:33:05 +0200

From: Markus Armbruster <address@hidden>

Show the actual default value instead of <null> when the property has
not been set.

Signed-off-by: Markus Armbruster <address@hidden>
Signed-off-by: Kevin Wolf <address@hidden>
---
 hw/ide/qdev.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/hw/ide/qdev.c b/hw/ide/qdev.c
index 5e549d9..6231d77 100644
--- a/hw/ide/qdev.c
+++ b/hw/ide/qdev.c
@@ -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);
     }
-- 
1.6.6.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]