diff options
author | David 'Digit' Turner <digit@android.com> | 2011-02-24 16:40:20 +0100 |
---|---|---|
committer | David 'Digit' Turner <digit@android.com> | 2011-03-01 01:06:04 +0100 |
commit | 26722dde31c3467cd31a078662810927eec05de5 (patch) | |
tree | 3a84fd23aeb65ddfc22d4bc095c2160209b4f069 /android/main.c | |
parent | cd4f70aa8e109356fca32601c259d38024315837 (diff) | |
download | external_qemu-26722dde31c3467cd31a078662810927eec05de5.zip external_qemu-26722dde31c3467cd31a078662810927eec05de5.tar.gz external_qemu-26722dde31c3467cd31a078662810927eec05de5.tar.bz2 |
Quote concatenated QEMU options when -verbose is used.
Change-Id: I2d95fa0aa9a5f679372dfd1ae7c7cec906c3049d
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 a061ecf..198212f 100644 --- a/android/main.c +++ b/android/main.c @@ -865,7 +865,14 @@ int main(int argc, char **argv) /* 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]); + /* To make it easier to copy-paste the output to a command-line, + * quote anything that contains spaces. + */ + if (strchr(args[i], ' ') != NULL) { + printf(" '%s'", args[i]); + } else { + printf(" %s", args[i]); + } } printf("\n"); } |