diff mbox

[v5,3/4] vl.c: allow for repeated -sd arguments

Message ID 5b0794bba1db4cf7370511efe69043469ab56edd.1341457220.git.peter.crosthwaite@petalogix.com
State New
Headers show

Commit Message

Peter A. G. Crosthwaite July 5, 2012, 4:04 a.m. UTC
Allows for repeating of -sd arguments in the same way as -pflash and -mtdblock.

Signed-off-by: Peter A. G. Crosthwaite <peter.crosthwaite@petalogix.com>
Acked-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
---
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(-)

Comments

Peter Maydell July 16, 2012, 5:28 p.m. UTC | #1
On 5 July 2012 05:04, Peter A. G. Crosthwaite
<peter.crosthwaite@petalogix.com> wrote:
> Allows for repeating of -sd arguments in the same way as -pflash and -mtdblock.
>
> Signed-off-by: Peter A. G. Crosthwaite <peter.crosthwaite@petalogix.com>
> Acked-by: Igor Mitsyanko <i.mitsyanko@samsung.com>

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>

-- PMM
diff mbox

Patch

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);