From patchwork Thu Jul 5 04:04:01 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: 169069 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 C60332C01BC for ; Thu, 5 Jul 2012 14:11:52 +1000 (EST) Received: from localhost ([::1]:50877 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmdKb-0001Fh-G2 for incoming@patchwork.ozlabs.org; Thu, 05 Jul 2012 00:06:17 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36582) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmdK0-0008KN-91 for qemu-devel@nongnu.org; Thu, 05 Jul 2012 00:05:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SmdJy-00069T-OH for qemu-devel@nongnu.org; Thu, 05 Jul 2012 00:05:39 -0400 Received: from mail-gh0-f173.google.com ([209.85.160.173]:36105) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmdJy-00061N-Jw for qemu-devel@nongnu.org; Thu, 05 Jul 2012 00:05:38 -0400 Received: by mail-gh0-f173.google.com with SMTP id r14so7545659ghr.4 for ; Wed, 04 Jul 2012 21:05:37 -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=ZIo7/3YwRuA/XuF9QbUGZ35Mba4a4SGUZ/cRGs8Z7GM=; b=olgSVExhaB6GfXtgoRU3E2LlgHDzcHo9uMefiPgHlX02KVu5+5I5Knil14qrux3i33 ii4zMDX/9qRj+g3BVGpuYZFFmfpwdJt6u/9otSQDnnx1OnxUH16MtlzQWT2F3DJ5bp1j Uf9rZ8kW2HMZ55RLbhuH9BIaKNwWIh+EMDKx5HFt7HM0cHYk9epShieoYisLp64SESZA 1gOxwHjvOnTlWxz1CaShl/z866O8rR5S6scctMSO4q5Dz2uRTw1YtWhSUnYpfhEKu7SC +A0t8jzkumVQ5ok/viW5uE1c9a6Ja4AIUCEV11Cx+0+dPPlP3FDc0ZgITjZ8EmZUethu Z9pA== Received: by 10.50.209.73 with SMTP id mk9mr12959172igc.66.1341461137572; Wed, 04 Jul 2012 21:05:37 -0700 (PDT) Received: from localhost ([124.148.20.9]) by mx.google.com with ESMTPS id s4sm10692575igb.1.2012.07.04.21.05.32 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 04 Jul 2012 21:05:36 -0700 (PDT) From: "Peter A. G. Crosthwaite" To: qemu-devel@nongnu.org, i.mitsyanko@samsung.com Date: Thu, 5 Jul 2012 14:04:01 +1000 Message-Id: <5b0794bba1db4cf7370511efe69043469ab56edd.1341457220.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: ALoCoQmDVqyMsZsKeP7FwJGphYf6p3FawPvPy4guBGQhbJv+Y/0VQ/+L1Kk2E3WrbQNrzUV4607B X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.160.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 v5 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);