qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 03/10] QemuOpts: make the drive id actually show up


From: Gerd Hoffmann
Subject: [Qemu-devel] [PATCH 03/10] QemuOpts: make the drive id actually show up in "info block".
Date: Fri, 31 Jul 2009 12:25:34 +0200

Signed-off-by: Gerd Hoffmann <address@hidden>
---
 vl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/vl.c b/vl.c
index fdd4f03..48331d4 100644
--- a/vl.c
+++ b/vl.c
@@ -2213,7 +2213,7 @@ DriveInfo *drive_init(QemuOpts *opts, void *opaque,
     /* init */
 
     dinfo = qemu_mallocz(sizeof(*dinfo));
-    if ((buf = qemu_opt_get(opts, "id")) != NULL) {
+    if ((buf = qemu_opts_id(opts)) != NULL) {
         dinfo->id = qemu_strdup(buf);
     } else {
         /* no id supplied -> create one */
-- 
1.6.2.5





reply via email to

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