Merge "Fix misc-macro-parentheses warnings in adb, debuggerd, libbacktrace." am: dab7d9de03
am: fa7569c921
* commit 'fa7569c921b9ca0db894287ea826cbd3b041d880':
Fix misc-macro-parentheses warnings in adb, debuggerd, libbacktrace.
Change-Id: I63223e36f3627d312051c86d54919b6cef33766c
This commit is contained in:
commit
dccd3a3698
|
@ -41,7 +41,7 @@ enum AdbTrace {
|
|||
};
|
||||
|
||||
#define VLOG_IS_ON(TAG) \
|
||||
((adb_trace_mask & (1 << TAG)) != 0)
|
||||
((adb_trace_mask & (1 << (TAG))) != 0)
|
||||
|
||||
#define VLOG(TAG) \
|
||||
if (LIKELY(!VLOG_IS_ON(TAG))) \
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
#include "elf_utils.h"
|
||||
|
||||
#define NOTE_ALIGN(size) ((size + 3) & ~3)
|
||||
#define NOTE_ALIGN(size) (((size) + 3) & ~3)
|
||||
|
||||
template <typename HdrType, typename PhdrType, typename NhdrType>
|
||||
static bool get_build_id(
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
#endif
|
||||
|
||||
#if !defined(SI_DETHREAD)
|
||||
#define SI_DETHREAD -7
|
||||
#define SI_DETHREAD (-7)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
// This is an extremely simplified version of libpagemap.
|
||||
|
||||
#define _BITS(x, offset, bits) (((x) >> offset) & ((1LL << (bits)) - 1))
|
||||
#define _BITS(x, offset, bits) (((x) >> (offset)) & ((1LL << (bits)) - 1))
|
||||
|
||||
#define PAGEMAP_PRESENT(x) (_BITS(x, 63, 1))
|
||||
#define PAGEMAP_SWAPPED(x) (_BITS(x, 62, 1))
|
||||
|
|
|
@ -1420,7 +1420,7 @@ TEST(libbacktrace, unwind_thread_doesnt_exist) {
|
|||
#if defined(ENABLE_PSS_TESTS)
|
||||
#include "GetPss.h"
|
||||
|
||||
#define MAX_LEAK_BYTES 32*1024UL
|
||||
#define MAX_LEAK_BYTES (32*1024UL)
|
||||
|
||||
void CheckForLeak(pid_t pid, pid_t tid) {
|
||||
// Do a few runs to get the PSS stable.
|
||||
|
|
Loading…
Reference in New Issue