diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2020-03-13 23:57:30 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-03-13 23:57:30 +0000 |
commit | bec237bdee1d683189bd9980c5325ecf720f42e2 (patch) | |
tree | 2bbca719c2ae8035a9c2c58569ce6505ea9160c6 | |
parent | 8a1aba349ce93860df39088c0631a531f03a2c62 (diff) | |
parent | bc2e58d6c2c5092044d422e03dcff69d316cb741 (diff) |
Merge "liblog: move LOG_ID_DEFAULT into the log_id enum" into rvc-dev
-rw-r--r-- | liblog/include/android/log.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/liblog/include/android/log.h b/liblog/include/android/log.h index ff6654c0d..43a91ab5b 100644 --- a/liblog/include/android/log.h +++ b/liblog/include/android/log.h @@ -155,14 +155,11 @@ typedef enum log_id { /** The kernel log buffer. */ LOG_ID_KERNEL = 7, - LOG_ID_MAX -} log_id_t; + LOG_ID_MAX, -/** - * Let the logging function choose the best log target. - * This is not part of the enum since adding either -1 or 0xFFFFFFFF forces the enum to be signed or - * unsigned, which breaks unfortunately common arithmetic against LOG_ID_MIN and LOG_ID_MAX. */ -#define LOG_ID_DEFAULT -1 + /** Let the logging function choose the best log target. */ + LOG_ID_DEFAULT = 0x7FFFFFFF +} log_id_t; /** * Writes the constant string `text` to the log buffer `id`, |