diff options
author | David 'Digit' Turner <digit@android.com> | 2011-03-17 17:04:17 -0700 |
---|---|---|
committer | Android Code Review <code-review@android.com> | 2011-03-17 17:04:17 -0700 |
commit | 2144d2a0b3f2669b09e12533317f6aefb1536ff9 (patch) | |
tree | 55e262bd9a6cc7b198e62c8287cfb16f1102bec3 | |
parent | a9b371d7fa8f843718fb7db794fefd1e3765e459 (diff) | |
parent | 5e736937d49affc9131944d7c879246fbcba3b70 (diff) | |
download | external_qemu-2144d2a0b3f2669b09e12533317f6aefb1536ff9.zip external_qemu-2144d2a0b3f2669b09e12533317f6aefb1536ff9.tar.gz external_qemu-2144d2a0b3f2669b09e12533317f6aefb1536ff9.tar.bz2 |
Merge "Fix -shell and -logcat options."
-rw-r--r-- | android/main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/android/main.c b/android/main.c index acc91e6..7b6ea03 100644 --- a/android/main.c +++ b/android/main.c @@ -161,7 +161,11 @@ int main(int argc, char **argv) char* args[128]; int n; char* opt; - int serial = 0; + /* The emulator always uses the first serial port for kernel messages + * and the second one for qemud. So start at the third if we need one + * for logcat or 'shell' + */ + int serial = 2; int shell_serial = 0; AndroidHwConfig* hw; |