diff options
author | Christopher Tate <ctate@google.com> | 2011-12-07 16:02:37 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-12-07 16:02:37 -0800 |
commit | c6b07d94fa062886e0908540f3ce760256b37065 (patch) | |
tree | ccf2b0171b0ba97c91b49a8cd9b0708e1be3abc0 /adb | |
parent | de90da4d8ac11c6794d0a7751633224c3ec11d90 (diff) | |
parent | db0a880c4682a90ddf078f03a0e709ddda07a2fd (diff) | |
download | system_core-c6b07d94fa062886e0908540f3ce760256b37065.zip system_core-c6b07d94fa062886e0908540f3ce760256b37065.tar.gz system_core-c6b07d94fa062886e0908540f3ce760256b37065.tar.bz2 |
Merge "Tweak logcat parameters"
Diffstat (limited to 'adb')
-rw-r--r-- | adb/commandline.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/adb/commandline.c b/adb/commandline.c index 4c15232..9f4ae97 100644 --- a/adb/commandline.c +++ b/adb/commandline.c @@ -561,6 +561,10 @@ static int logcat(transport_type transport, char* serial, int argc, char **argv) free(quoted_log_tags); + if (!strcmp(argv[0],"longcat")) { + strncat(buf, " -v long", sizeof(buf)-1); + } + argc -= 1; argv += 1; while(argc-- > 0) { @@ -1203,7 +1207,7 @@ top: return 0; } - if(!strcmp(argv[0],"logcat") || !strcmp(argv[0],"lolcat")) { + if(!strcmp(argv[0],"logcat") || !strcmp(argv[0],"lolcat") || !strcmp(argv[0],"longcat")) { return logcat(ttype, serial, argc, argv); } |