summaryrefslogtreecommitdiff
path: root/libpagemap
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2016-05-18 14:49:08 -0700
committerChih-Hung Hsieh <chh@google.com>2016-05-18 14:49:08 -0700
commitde7f00c1e4a85742cb9d701316dd59fa4c1a5a7f (patch)
treee95e67af8b3915105b422575bdc1e753d499ea30 /libpagemap
parent5767273e98eb1a17827f0eb95612fb3fb4d6f12c (diff)
downloadextras-de7f00c1e4a85742cb9d701316dd59fa4c1a5a7f.tar.gz
Fix misc-macro-parentheses warnings in libpagemap.
Bug: 28705665 Change-Id: I3a40229aeba12b3fb643770c92039a2af1e4a441
Diffstat (limited to 'libpagemap')
-rw-r--r--libpagemap/include/pagemap/pagemap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpagemap/include/pagemap/pagemap.h b/libpagemap/include/pagemap/pagemap.h
index 4de2b4b6..61e59e2f 100644
--- a/libpagemap/include/pagemap/pagemap.h
+++ b/libpagemap/include/pagemap/pagemap.h
@@ -186,7 +186,7 @@ int pm_process_pagemap_range(pm_process_t *proc,
uint64_t low, uint64_t hi,
uint64_t **range_out, size_t *len);
-#define _BITS(x, offset, bits) (((x) >> offset) & ((1LL << (bits)) - 1))
+#define _BITS(x, offset, bits) (((x) >> (offset)) & ((1LL << (bits)) - 1))
#define PM_PAGEMAP_PRESENT(x) (_BITS(x, 63, 1))
#define PM_PAGEMAP_SWAPPED(x) (_BITS(x, 62, 1))