summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChih-Hung Hsieh2016-05-18 17:47:19 -0500
committerChih-Hung Hsieh2016-05-18 17:48:50 -0500
commitf0f94fe49b04c2d2bf0a0a44a7afb9118607b351 (patch)
treecb3efefb85db7a7f8b37638e5bd61b3ebe9b944a /liblog/logger.h
parent9b0eb7cdf4ac4650fc3f476c2f5a91c50a18e524 (diff)
downloadplatform-system-core-f0f94fe49b04c2d2bf0a0a44a7afb9118607b351.tar.gz
platform-system-core-f0f94fe49b04c2d2bf0a0a44a7afb9118607b351.tar.xz
platform-system-core-f0f94fe49b04c2d2bf0a0a44a7afb9118607b351.zip
Fix misc-macro-parentheses warnings in liblog.
Bug: 28705665 Change-Id: Ib272a83cb93b09d986c19a40e23a2679b9e17558
Diffstat (limited to 'liblog/logger.h')
-rw-r--r--liblog/logger.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/liblog/logger.h b/liblog/logger.h
index c727f294a..508725610 100644
--- a/liblog/logger.h
+++ b/liblog/logger.h
@@ -124,23 +124,23 @@ struct android_log_transport_context {
124 124
125/* assumes caller has structures read-locked, single threaded, or fenced */ 125/* assumes caller has structures read-locked, single threaded, or fenced */
126#define transport_context_for_each(transp, logger_list) \ 126#define transport_context_for_each(transp, logger_list) \
127 for (transp = node_to_item((logger_list)->transport.next, \ 127 for ((transp) = node_to_item((logger_list)->transport.next, \
128 struct android_log_transport_context, \ 128 struct android_log_transport_context, \
129 node); \ 129 node); \
130 (transp != node_to_item(&(logger_list)->transport, \ 130 ((transp) != node_to_item(&(logger_list)->transport, \
131 struct android_log_transport_context, \ 131 struct android_log_transport_context, \
132 node)) && \ 132 node)) && \
133 (transp->parent == (logger_list)); \ 133 ((transp)->parent == (logger_list)); \
134 transp = node_to_item(transp->node.next, \ 134 (transp) = node_to_item((transp)->node.next, \
135 struct android_log_transport_context, node)) 135 struct android_log_transport_context, node))
136 136
137#define logger_for_each(logp, logger_list) \ 137#define logger_for_each(logp, logger_list) \
138 for (logp = node_to_item((logger_list)->logger.next, \ 138 for ((logp) = node_to_item((logger_list)->logger.next, \
139 struct android_log_logger, node); \ 139 struct android_log_logger, node); \
140 (logp != node_to_item(&(logger_list)->logger, \ 140 ((logp) != node_to_item(&(logger_list)->logger, \
141 struct android_log_logger, node)) && \ 141 struct android_log_logger, node)) && \
142 (logp->parent == (logger_list)); \ 142 ((logp)->parent == (logger_list)); \
143 logp = node_to_item((logp)->node.next, \ 143 (logp) = node_to_item((logp)->node.next, \
144 struct android_log_logger, node)) 144 struct android_log_logger, node))
145 145
146/* OS specific dribs and drabs */ 146/* OS specific dribs and drabs */