diff options
author | Elliott Hughes <enh@google.com> | 2016-06-22 15:50:51 -0700 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2016-06-23 13:08:22 -0500 |
commit | a91b9cbaea672b25f51817841f2b3e7278a0a3ba (patch) | |
tree | 6ecd3a58be6b15f31e3a2fa867de85d1ee23e57b /toys | |
parent | 7159163af32db0ba19d77417763921ad5a16c7fc (diff) | |
download | toybox-a91b9cbaea672b25f51817841f2b3e7278a0a3ba.tar.gz |
Remove android/log's "default" priority.
It turns out that "default" goes nowhere. Whereas "silent" actually shows
up in the log. So document "silent" (which we already supported) but
remove support for "default".
Also make the spacing between levels in the help more regular; it looks
weird being in columns when there's only one row!
Diffstat (limited to 'toys')
-rw-r--r-- | toys/android/log.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toys/android/log.c b/toys/android/log.c index dff42872..7da37b6f 100644 --- a/toys/android/log.c +++ b/toys/android/log.c @@ -14,7 +14,7 @@ config LOG Logs message to logcat. -p use the given priority instead of INFO: - d: DEBUG e: ERROR f: FATAL i: INFO v: VERBOSE w: WARN *: DEFAULT + d: DEBUG e: ERROR f: FATAL i: INFO v: VERBOSE w: WARN s: SILENT -t use the given tag instead of "log" */ @@ -34,11 +34,11 @@ void log_main(void) int i; if (TT.pri) { - i = stridx("defisvw*", tolower(*TT.pri)); + i = stridx("defisvw", tolower(*TT.pri)); if (i==-1 || strlen(TT.pri)!=1) error_exit("bad -p '%s'", TT.pri); pri = (android_LogPriority []){ANDROID_LOG_DEBUG, ANDROID_LOG_ERROR, ANDROID_LOG_FATAL, ANDROID_LOG_INFO, ANDROID_LOG_SILENT, - ANDROID_LOG_VERBOSE, ANDROID_LOG_WARN, ANDROID_LOG_DEFAULT}[i]; + ANDROID_LOG_VERBOSE, ANDROID_LOG_WARN}[i]; } if (!TT.tag) TT.tag = "log"; |