Merge "liblog: Assure shifting behavior is consistent"
am: d8c3cae95f
Change-Id: Ib99df0dc52a7fa15a2364b69b30563895c78ceb0
This commit is contained in:
commit
e8528b92e1
1 changed files with 3 additions and 3 deletions
|
|
@ -85,9 +85,9 @@ struct logger_list {
|
|||
// bits 0-2: the decimal value of the log buffer.
|
||||
// Other bits are unused.
|
||||
|
||||
#define LOGGER_LOGD (1 << 31)
|
||||
#define LOGGER_PMSG (1 << 30)
|
||||
#define LOGGER_LOG_ID_MASK ((1 << 3) - 1)
|
||||
#define LOGGER_LOGD (1U << 31)
|
||||
#define LOGGER_PMSG (1U << 30)
|
||||
#define LOGGER_LOG_ID_MASK ((1U << 3) - 1)
|
||||
|
||||
inline bool android_logger_is_logd(struct logger* logger) {
|
||||
return reinterpret_cast<uintptr_t>(logger) & LOGGER_LOGD;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue