Merge "logcat: format verbs and adverbs"
This commit is contained in:
commit
82fb012a03
2 changed files with 6 additions and 4 deletions
|
|
@ -27,6 +27,7 @@ extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
/* Verbs */
|
||||||
FORMAT_OFF = 0,
|
FORMAT_OFF = 0,
|
||||||
FORMAT_BRIEF,
|
FORMAT_BRIEF,
|
||||||
FORMAT_PROCESS,
|
FORMAT_PROCESS,
|
||||||
|
|
@ -36,7 +37,7 @@ typedef enum {
|
||||||
FORMAT_TIME,
|
FORMAT_TIME,
|
||||||
FORMAT_THREADTIME,
|
FORMAT_THREADTIME,
|
||||||
FORMAT_LONG,
|
FORMAT_LONG,
|
||||||
/* The following are modifiers to above formats */
|
/* Adverbs. The following are modifiers to above format verbs */
|
||||||
FORMAT_MODIFIER_COLOR, /* converts priority to color */
|
FORMAT_MODIFIER_COLOR, /* converts priority to color */
|
||||||
FORMAT_MODIFIER_TIME_USEC, /* switches from msec to usec time precision */
|
FORMAT_MODIFIER_TIME_USEC, /* switches from msec to usec time precision */
|
||||||
FORMAT_MODIFIER_PRINTABLE, /* converts non-printable to printable escapes */
|
FORMAT_MODIFIER_PRINTABLE, /* converts non-printable to printable escapes */
|
||||||
|
|
|
||||||
|
|
@ -285,9 +285,10 @@ static void show_help(const char *cmd)
|
||||||
" -n <count>, --rotate-count=<count>\n"
|
" -n <count>, --rotate-count=<count>\n"
|
||||||
" Sets max number of rotated logs to <count>, default 4\n"
|
" Sets max number of rotated logs to <count>, default 4\n"
|
||||||
" -v <format>, --format=<format>\n"
|
" -v <format>, --format=<format>\n"
|
||||||
" Sets the log print format, where <format> is:\n"
|
" Sets log print format verb and adverbs, where <format> is:\n"
|
||||||
" brief color epoch long monotonic printable process raw\n"
|
" brief long process raw tag thread theadtime time\n"
|
||||||
" tag thread threadtime time uid usec UTC year zone\n"
|
" and modifying adverbs can be:\n"
|
||||||
|
" color epoch monotonic printable uid usec UTC year zone\n"
|
||||||
" -D, --dividers Print dividers between each log buffer\n"
|
" -D, --dividers Print dividers between each log buffer\n"
|
||||||
" -c, --clear Clear (flush) the entire log and exit\n"
|
" -c, --clear Clear (flush) the entire log and exit\n"
|
||||||
" if Log to File specified, clear fileset instead\n"
|
" if Log to File specified, clear fileset instead\n"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue