From patchwork Mon Aug 6 03:25:36 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: 175252 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 7F2F02C0080 for ; Mon, 6 Aug 2012 13:27:27 +1000 (EST) Received: from localhost ([::1]:58184 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SyDyW-0005LP-Lw for incoming@patchwork.ozlabs.org; Sun, 05 Aug 2012 23:27:24 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57178) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SyDxv-0003xF-S3 for qemu-devel@nongnu.org; Sun, 05 Aug 2012 23:26:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SyDxu-0001jz-Ul for qemu-devel@nongnu.org; Sun, 05 Aug 2012 23:26:47 -0400 Received: from mail-yx0-f173.google.com ([209.85.213.173]:46184) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SyDxu-0001jv-Qe for qemu-devel@nongnu.org; Sun, 05 Aug 2012 23:26:46 -0400 Received: by yenm10 with SMTP id m10so525149yen.4 for ; Sun, 05 Aug 2012 20:26:46 -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=KpLB17gyRTpRudJ5Hw9K9Wut2c5kaQcyX3WOWWaU8oE=; b=no/17nx4JzDF0bEnqD8WKZ0qwRGBJieoyb6EbaJJ/AhtusSI7XrSZH9Jrue6VcUtYB NGKmWlvle0wqDfDlHQv1Trc0F+3ea/1f5j0s2HeqVkk8gdchcRooYxh73hozH2/j9isf i8lVJu2cMm1wbKuGfAdwkHh4QHg6nMYoojdgR29QPEuQorNtwq4TLxj1dedaay9kUaFx yjQm74X6P7KqqL1rO3EZqXAVFnqP1+XccBKOlntrsKUVIIfueFIMlggSX7rmbshl4OgU N+ICtzg9nccfIx4G/B8LQ968+prR/Nunn+nobrowFP3j7XE5jHSrE8siJSobDr6LLHxr Uk+w== Received: by 10.66.74.195 with SMTP id w3mr15050719pav.64.1344223605984; Sun, 05 Aug 2012 20:26:45 -0700 (PDT) Received: from localhost ([124.148.20.9]) by mx.google.com with ESMTPS id rz10sm7983679pbc.32.2012.08.05.20.26.42 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 05 Aug 2012 20:26:45 -0700 (PDT) From: "Peter A. G. Crosthwaite" To: qemu-devel@nongnu.org, i.mitsyanko@samsung.com Date: Mon, 6 Aug 2012 13:25:36 +1000 Message-Id: <8d5b3844ed58552990df81e7d547ed6396aec63b.1344223191.git.peter.crosthwaite@petalogix.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: References: In-Reply-To: References: X-Gm-Message-State: ALoCoQne1faNii7N9hHZuqiSZqzZVHr4dTJ7hlIepwjBvjJVBuNpOk9AC69bBlmYYgcJu12wRxzo X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.213.173 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 v6 3/4] vl.c: allow for repeated -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 arguments in the same way as -pflash and -mtdblock. Signed-off-by: Peter A. G. Crosthwaite Acked-by: Igor Mitsyanko Reviewed-by: Peter Maydell --- changed from v4: fixed (another) commit msg typo changed from v3: fixed commit msg typo vl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/vl.c b/vl.c index 1329c30..fe1f33b 100644 --- a/vl.c +++ b/vl.c @@ -2431,7 +2431,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);