diff options
author | David 'Digit' Turner <digit@android.com> | 2011-01-19 22:11:03 +0100 |
---|---|---|
committer | David 'Digit' Turner <digit@android.com> | 2011-01-19 22:28:46 +0100 |
commit | 3336176fc898915b7b5544f3a7c60ec2794507c3 (patch) | |
tree | bab8d6f4f2646201457a9d85f17a65717bfd4387 /android/main.c | |
parent | 3a003a41d577050133b5dc922e8e769d9250bbd8 (diff) | |
download | external_qemu-3336176fc898915b7b5544f3a7c60ec2794507c3.zip external_qemu-3336176fc898915b7b5544f3a7c60ec2794507c3.tar.gz external_qemu-3336176fc898915b7b5544f3a7c60ec2794507c3.tar.bz2 |
Print concatenated QEMU options with -verbose.
This makes it easier to launch the core (qemu-android) with the same
set of options than the stand-alone emulator.
Change-Id: I55d0007f83280ffc5b9a26adc1300472013ff93d
Diffstat (limited to 'android/main.c')
-rw-r--r-- | android/main.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/android/main.c b/android/main.c index 00d54d1..5968249 100644 --- a/android/main.c +++ b/android/main.c @@ -1691,9 +1691,16 @@ int main(int argc, char **argv) if(VERBOSE_CHECK(init)) { int i; + printf("QEMU options list:\n"); for(i = 0; i < n; i++) { - fprintf(stdout, "emulator: argv[%02d] = \"%s\"\n", i, args[i]); + printf("emulator: argv[%02d] = \"%s\"\n", i, args[i]); } + /* Dump final command-line option to make debugging the core easier */ + printf("Concatenated QEMU options:\n"); + for (i = 0; i < n; i++) { + printf(" %s", args[i]); + } + printf("\n"); } return qemu_main(n, args); } |