From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWpJE-00038q-B6 for qemu-devel@nongnu.org; Fri, 31 Jul 2009 06:25:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWpJ8-00035z-Ij for qemu-devel@nongnu.org; Fri, 31 Jul 2009 06:25:54 -0400 Received: from [199.232.76.173] (port=47778 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWpJ7-00035p-Rj for qemu-devel@nongnu.org; Fri, 31 Jul 2009 06:25:49 -0400 Received: from mx2.redhat.com ([66.187.237.31]:47165) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MWpJ7-0004kM-15 for qemu-devel@nongnu.org; Fri, 31 Jul 2009 06:25:49 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n6VAPk7Q028364 for ; Fri, 31 Jul 2009 06:25:46 -0400 From: Gerd Hoffmann Date: Fri, 31 Jul 2009 12:25:34 +0200 Message-Id: <1249035941-4562-4-git-send-email-kraxel@redhat.com> In-Reply-To: <1249035941-4562-1-git-send-email-kraxel@redhat.com> References: <1249035941-4562-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 03/10] QemuOpts: make the drive id actually show up in "info block". List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Signed-off-by: Gerd Hoffmann --- 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