summaryrefslogtreecommitdiffstats
path: root/logcat
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2015-03-09 09:32:56 -0700
committerMark Salyzyn <salyzyn@google.com>2015-03-09 09:57:25 -0700
commitbba894af3f4260dcabfee902d4e3836a606da9b8 (patch)
tree7b65dd2a18d7e6a0688ff41329f4c28fa6a9a20f /logcat
parent0ffaa2b75acde02b0ea0e7985dd957c6bc3a2370 (diff)
downloadsystem_core-bba894af3f4260dcabfee902d4e3836a606da9b8.zip
system_core-bba894af3f4260dcabfee902d4e3836a606da9b8.tar.gz
system_core-bba894af3f4260dcabfee902d4e3836a606da9b8.tar.bz2
logcat: fortify help on filterspec
Bug: 19620794 Change-Id: I572ffb62d39d884d5102b0846a95b1a8216f3d41
Diffstat (limited to 'logcat')
-rw-r--r--logcat/logcat.cpp20
1 files changed, 9 insertions, 11 deletions
diff --git a/logcat/logcat.cpp b/logcat/logcat.cpp
index 7e4eadd..be96fc4 100644
--- a/logcat/logcat.cpp
+++ b/logcat/logcat.cpp
@@ -215,7 +215,7 @@ static void show_help(const char *cmd)
fprintf(stderr, "options include:\n"
" -s Set default filter to silent.\n"
- " Like specifying filterspec '*:s'\n"
+ " Like specifying filterspec '*:S'\n"
" -f <filename> Log to file. Default to stdout\n"
" -r [<kbytes>] Rotate log every kbytes. (16 if unspecified). Requires -f\n"
" -n <count> Sets max number of rotated logs to <count>, default 4\n"
@@ -250,21 +250,19 @@ static void show_help(const char *cmd)
fprintf(stderr,"\nfilterspecs are a series of \n"
" <tag>[:priority]\n\n"
"where <tag> is a log component tag (or * for all) and priority is:\n"
- " V Verbose\n"
- " D Debug\n"
+ " V Verbose (default for <tag>)\n"
+ " D Debug (default for '*')\n"
" I Info\n"
" W Warn\n"
" E Error\n"
" F Fatal\n"
- " S Silent (supress all output)\n"
- "\n'*' means '*:d' and <tag> by itself means <tag>:v\n"
- "\nIf not specified on the commandline, filterspec is set from ANDROID_LOG_TAGS.\n"
- "If no filterspec is found, filter defaults to '*:I'\n"
- "\nIf not specified with -v, format is set from ANDROID_PRINTF_LOG\n"
+ " S Silent (suppress all output)\n"
+ "\n'*' by itself means '*:D' and <tag> by itself means <tag>:V.\n"
+ "If no '*' filterspec or -s on command line, all filter defaults to '*:V'.\n"
+ "eg: '*:S <tag>' prints only <tag>, '<tag>:S' suppresses all <tag> log messages.\n"
+ "\nIf not specified on the command line, filterspec is set from ANDROID_LOG_TAGS.\n"
+ "\nIf not specified with -v on command line, format is set from ANDROID_PRINTF_LOG\n"
"or defaults to \"threadtime\"\n\n");
-
-
-
}