From: Gerd Hoffmann Date: Fri, 31 Jul 2009 10:25:34 +0000 (+0200) Subject: QemuOpts: make the drive id actually show up in "info block". X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e23d9c4de1a6e215786dfa2baa9efb97f29c0b4d;p=qemu.git QemuOpts: make the drive id actually show up in "info block". Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori Message-Id: --- diff --git a/vl.c b/vl.c index a526cb0f35..4cd1b60327 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 */