From patchwork Mon Aug 6 03:25:36 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [v6,3/4] vl.c: allow for repeated -sd arguments Date: Sun, 05 Aug 2012 17:25:36 -0000 From: "Peter A. G. Crosthwaite" X-Patchwork-Id: 175252 Message-Id: <8d5b3844ed58552990df81e7d547ed6396aec63b.1344223191.git.peter.crosthwaite@petalogix.com> To: qemu-devel@nongnu.org, i.mitsyanko@samsung.com 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 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);