From patchwork Thu Jun 7 05:05:03 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peter A. G. Crosthwaite" X-Patchwork-Id: 163466 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 61B9EB6FA1 for ; Thu, 7 Jun 2012 15:05:50 +1000 (EST) Received: from localhost ([::1]:39910 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ScUuq-0003Bo-7o for incoming@patchwork.ozlabs.org; Thu, 07 Jun 2012 01:05:48 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ScUuf-00035X-VR for qemu-devel@nongnu.org; Thu, 07 Jun 2012 01:05:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ScUue-0001Fm-BG for qemu-devel@nongnu.org; Thu, 07 Jun 2012 01:05:37 -0400 Received: from mail-pz0-f45.google.com ([209.85.210.45]:64332) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ScUue-0001FU-4Z for qemu-devel@nongnu.org; Thu, 07 Jun 2012 01:05:36 -0400 Received: by dadv2 with SMTP id v2so361361dad.4 for ; Wed, 06 Jun 2012 22:05:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :in-reply-to:references:x-gm-message-state; bh=am6NrC0E5e8VMM3xem6voydL3KO3fhAsHduo+WgK9IU=; b=Xg+yUkFew/qlrziIUz6ePxf9mc2718D3DEXtHbidgSenZElgcaoL5YeKGA8NYLfHTZ maJS2Nsv81LsRy6Lalpn9r4leqbC6v4i9x8asOtwYMQn27nXmCwO+LsqhStAtF0MRsmV x64WdINSSS7iu6qvIYulA8r3TSMi2Gnr7h84agwf3N1202L0ZO2Rwop8kQH98PNBPosj g+5BhaG2skhXkML3JnDJWFe9Rc/mUmtzGBq0D/JM19nY4CjHMHJkXA2hCYWDUKVnc95m 5r1UiA1snmSkO94MF3b4vqBYoHnbClTOWksYrOHUo3IoiopTxAxsfwcgs3SuW7qmbzMh RG0A== Received: by 10.68.131.35 with SMTP id oj3mr4040051pbb.156.1339045533884; Wed, 06 Jun 2012 22:05:33 -0700 (PDT) Received: from localhost ([124.148.20.9]) by mx.google.com with ESMTPS id qz6sm2783519pbc.64.2012.06.06.22.05.29 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 06 Jun 2012 22:05:33 -0700 (PDT) From: "Peter A. G. Crosthwaite" To: qemu-devel@nongnu.org, i.mitsyanko@samsung.com Date: Thu, 7 Jun 2012 15:05:03 +1000 Message-Id: <93f616330f3e8c5ae27d50d27bda9a5a8804d3aa.1339044751.git.peter.crosthwaite@petalogix.com> X-Mailer: git-send-email 1.7.3.2 In-Reply-To: References: In-Reply-To: References: X-Gm-Message-State: ALoCoQmmVXzgaHRAKuXAk3EnYBB2bMAxRUORL0LZXSA+ZQ3ESg5hebX/5bLR09sKT3o4RYeL6v5C X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.210.45 Cc: peter.maydell@linaro.org, e.voevodin@samsung.com, peter.crosthwaite@petalogix.com, kyungmin.park@samsung.com, d.solodkiy@samsung.com, edgar.iglesias@gmail.com, m.kozlov@samsung.com, john.williams@petalogix.com Subject: [Qemu-devel] [PATCH v3 3/4] vl.c: allow for reapeated -sd arguments X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Allows for repeating of -sd arugments in the same way -pflash and -mtdblock can be repeated. Signed-off-by: Peter A. G. Crosthwaite --- vl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/vl.c b/vl.c index 23ab3a3..a381e90 100644 --- a/vl.c +++ b/vl.c @@ -2437,7 +2437,7 @@ int main(int argc, char **argv, char **envp) drive_add(IF_MTD, -1, optarg, MTD_OPTS); break; case QEMU_OPTION_sd: - drive_add(IF_SD, 0, optarg, SD_OPTS); + drive_add(IF_SD, -1, optarg, SD_OPTS); break; case QEMU_OPTION_pflash: drive_add(IF_PFLASH, -1, optarg, PFLASH_OPTS);