summaryrefslogtreecommitdiffstats
path: root/vl.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-07-31 12:25:34 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-10 13:05:26 -0500
commite23d9c4de1a6e215786dfa2baa9efb97f29c0b4d (patch)
treeb9ff31db77505482fa4dfd08c2fc6e49ac1c5b38 /vl.c
parent6d378185c665c0edf3081f570c5b42dd3303f9b4 (diff)
downloadhqemu-e23d9c4de1a6e215786dfa2baa9efb97f29c0b4d.zip
hqemu-e23d9c4de1a6e215786dfa2baa9efb97f29c0b4d.tar.gz
QemuOpts: make the drive id actually show up in "info block".
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vl.c b/vl.c
index a526cb0..4cd1b60 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 */
OpenPOWER on IntegriCloud