summaryrefslogtreecommitdiffstats
path: root/adb
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2011-12-07 16:02:37 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-12-07 16:02:37 -0800
commitc6b07d94fa062886e0908540f3ce760256b37065 (patch)
treeccf2b0171b0ba97c91b49a8cd9b0708e1be3abc0 /adb
parentde90da4d8ac11c6794d0a7751633224c3ec11d90 (diff)
parentdb0a880c4682a90ddf078f03a0e709ddda07a2fd (diff)
downloadsystem_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.c6
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);
}