From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWT75-0008Or-QU for qemu-devel@nongnu.org; Thu, 30 Jul 2009 06:43:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWT70-0008K0-OQ for qemu-devel@nongnu.org; Thu, 30 Jul 2009 06:43:54 -0400 Received: from [199.232.76.173] (port=54158 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWT70-0008Ji-1H for qemu-devel@nongnu.org; Thu, 30 Jul 2009 06:43:50 -0400 Received: from mx2.redhat.com ([66.187.237.31]:38595) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MWT6z-0005U6-FV for qemu-devel@nongnu.org; Thu, 30 Jul 2009 06:43: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 n6UAhm3I009530 for ; Thu, 30 Jul 2009 06:43:48 -0400 From: Gerd Hoffmann Date: Thu, 30 Jul 2009 12:43:39 +0200 Message-Id: <1248950621-22249-4-git-send-email-kraxel@redhat.com> In-Reply-To: <1248950621-22249-1-git-send-email-kraxel@redhat.com> References: <1248950621-22249-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 3/5] 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 bb56644..4f322c1 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