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:
This commit is contained in:
Gerd Hoffmann 2009-07-31 12:25:34 +02:00 committed by Anthony Liguori
parent 6d378185c6
commit e23d9c4de1
1 changed files with 1 additions and 1 deletions

2
vl.c
View File

@ -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 */