aboutsummaryrefslogtreecommitdiff
path: root/toys/android
diff options
context:
space:
mode:
Diffstat (limited to 'toys/android')
-rw-r--r--toys/android/log.c6
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";