summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTreehugger Robot2016-07-06 15:18:00 -0500
committerGerrit Code Review2016-07-06 15:18:00 -0500
commit82fb012a03f9cb82d86bf6d8466318772011ac2b (patch)
tree8e0ac61bfd6cc871aa4dd2f2d2b10aaf677b5f98
parent4ee9ed5366d2963604da7d176d72a49ae87b05bd (diff)
parent9cfd1c6ebc613830ce8c0f427a3c3e53dfc7f34f (diff)
downloadplatform-system-core-82fb012a03f9cb82d86bf6d8466318772011ac2b.tar.gz
platform-system-core-82fb012a03f9cb82d86bf6d8466318772011ac2b.tar.xz
platform-system-core-82fb012a03f9cb82d86bf6d8466318772011ac2b.zip
Merge "logcat: format verbs and adverbs"
-rw-r--r--include/log/logprint.h3
-rw-r--r--logcat/logcat.cpp7
2 files changed, 6 insertions, 4 deletions
diff --git a/include/log/logprint.h b/include/log/logprint.h
index 539d1dcff..1bc1f7241 100644
--- a/include/log/logprint.h
+++ b/include/log/logprint.h
@@ -27,6 +27,7 @@ extern "C" {
27#endif 27#endif
28 28
29typedef enum { 29typedef enum {
30 /* Verbs */
30 FORMAT_OFF = 0, 31 FORMAT_OFF = 0,
31 FORMAT_BRIEF, 32 FORMAT_BRIEF,
32 FORMAT_PROCESS, 33 FORMAT_PROCESS,
@@ -36,7 +37,7 @@ typedef enum {
36 FORMAT_TIME, 37 FORMAT_TIME,
37 FORMAT_THREADTIME, 38 FORMAT_THREADTIME,
38 FORMAT_LONG, 39 FORMAT_LONG,
39 /* The following are modifiers to above formats */ 40 /* Adverbs. The following are modifiers to above format verbs */
40 FORMAT_MODIFIER_COLOR, /* converts priority to color */ 41 FORMAT_MODIFIER_COLOR, /* converts priority to color */
41 FORMAT_MODIFIER_TIME_USEC, /* switches from msec to usec time precision */ 42 FORMAT_MODIFIER_TIME_USEC, /* switches from msec to usec time precision */
42 FORMAT_MODIFIER_PRINTABLE, /* converts non-printable to printable escapes */ 43 FORMAT_MODIFIER_PRINTABLE, /* converts non-printable to printable escapes */
diff --git a/logcat/logcat.cpp b/logcat/logcat.cpp
index ea698c8da..f5604915e 100644
--- a/logcat/logcat.cpp
+++ b/logcat/logcat.cpp
@@ -285,9 +285,10 @@ static void show_help(const char *cmd)
285 " -n <count>, --rotate-count=<count>\n" 285 " -n <count>, --rotate-count=<count>\n"
286 " Sets max number of rotated logs to <count>, default 4\n" 286 " Sets max number of rotated logs to <count>, default 4\n"
287 " -v <format>, --format=<format>\n" 287 " -v <format>, --format=<format>\n"
288 " Sets the log print format, where <format> is:\n" 288 " Sets log print format verb and adverbs, where <format> is:\n"
289 " brief color epoch long monotonic printable process raw\n" 289 " brief long process raw tag thread theadtime time\n"
290 " tag thread threadtime time uid usec UTC year zone\n" 290 " and modifying adverbs can be:\n"
291 " color epoch monotonic printable uid usec UTC year zone\n"
291 " -D, --dividers Print dividers between each log buffer\n" 292 " -D, --dividers Print dividers between each log buffer\n"
292 " -c, --clear Clear (flush) the entire log and exit\n" 293 " -c, --clear Clear (flush) the entire log and exit\n"
293 " if Log to File specified, clear fileset instead\n" 294 " if Log to File specified, clear fileset instead\n"