From 3336176fc898915b7b5544f3a7c60ec2794507c3 Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Wed, 19 Jan 2011 22:11:03 +0100 Subject: 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 --- android/main.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'android/main.c') 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); } -- cgit v1.1