summaryrefslogtreecommitdiffstats
path: root/logcat
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2015-05-15 09:01:58 -0700
committerMark Salyzyn <salyzyn@google.com>2015-06-04 08:37:14 -0700
commit5d332907f0f845227847c31a122578dc910f1072 (patch)
tree7efdf8e7f2b12c374e6f4daa2df9d45d5f986bfc /logcat
parentb8216007c66a219de310830aaee05bf5a3d90466 (diff)
downloadcore-5d332907f0f845227847c31a122578dc910f1072.tar.gz
core-5d332907f0f845227847c31a122578dc910f1072.tar.bz2
core-5d332907f0f845227847c31a122578dc910f1072.zip
liblog: logcat: Add printable format modifier
(cherry pick from commit b932b2f8bac124b088edc93966281cca4567dc54) - added printable format modifier: logcat -v printable - opencoded borrowed individual utf8 validity checking algorithm from utf8_length() in libutils/Unicode.cpp - if considered basic one-character ASCII, use popular \x escape sequences for non-printable - logprint convert to C comments to drop mixed-mode Bug: 19000361 Change-Id: I122a5b8fb41216fc0bc816178c0b768f3df56586
Diffstat (limited to 'logcat')
-rw-r--r--logcat/logcat.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/logcat/logcat.cpp b/logcat/logcat.cpp
index 6d7740eaa..736e02eaa 100644
--- a/logcat/logcat.cpp
+++ b/logcat/logcat.cpp
@@ -253,7 +253,8 @@ static void show_help(const char *cmd)
" -r <kbytes> Rotate log every kbytes. Requires -f\n"
" -n <count> Sets max number of rotated logs to <count>, default 4\n"
" -v <format> Sets the log print format, where <format> is:\n\n"
- " brief color long process raw tag thread threadtime time usec\n\n"
+ " brief color long printable process raw tag thread\n"
+ " threadtime time usec\n\n"
" -D print dividers between each log buffer\n"
" -c clear (flush) the entire log and exit\n"
" -d dump the log and then exit (don't block)\n"