diff options
author | Adnan Begovic <adnan@cyngn.com> | 2015-10-13 16:28:49 -0700 |
---|---|---|
committer | Adnan Begovic <adnan@cyngn.com> | 2015-10-13 16:30:27 -0700 |
commit | 945cd69c83752d142a4bf7ccea26a7570a8783eb (patch) | |
tree | 40c615518f9eedb2d1b16f22901c050045ee1861 /logcat | |
parent | f097d5dff82fa4918a3731576a23ddb0ec7fd932 (diff) | |
download | system_core-945cd69c83752d142a4bf7ccea26a7570a8783eb.zip system_core-945cd69c83752d142a4bf7ccea26a7570a8783eb.tar.gz system_core-945cd69c83752d142a4bf7ccea26a7570a8783eb.tar.bz2 |
logcat: Map '-C' to 'logcat -v color'
Change-Id: I0419f4551a6dfd77c7d4833050b36da28113ed9b
Diffstat (limited to 'logcat')
-rw-r--r-- | logcat/logcat.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/logcat/logcat.cpp b/logcat/logcat.cpp index e598bb8..07d0a5c 100644 --- a/logcat/logcat.cpp +++ b/logcat/logcat.cpp @@ -284,6 +284,7 @@ static void show_help(const char *cmd) " other pruning activity is oldest first. Special case ~!\n" " represents an automatic quicker pruning for the noisiest\n" " UID as determined by the current statistics.\n" + " -C colored output\n" " -P '<list> ...' set prune white and ~black list, using same format as\n" " printed above. Must be quoted.\n"); @@ -492,7 +493,7 @@ int main(int argc, char **argv) for (;;) { int ret; - ret = getopt(argc, argv, ":cdDLt:T:gG:sQf:r:n:v:b:BSpP:"); + ret = getopt(argc, argv, ":cdDLt:T:gG:sQf:r:n:v:b:BSpCP:"); if (ret < 0) { break; @@ -597,6 +598,10 @@ int main(int argc, char **argv) setPruneList = optarg; break; + case 'C': + setLogFormat ("color"); + break; + case 'b': { if (strcmp(optarg, "all") == 0) { while (devices) { |