summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Salyzyn2017-03-09 10:09:43 -0600
committerMark Salyzyn2017-03-09 11:36:19 -0600
commit2ed51d708eda64516ec79ac6397f690de38f0075 (patch)
tree9ea938a4ee0461c443dc99e197827fc36ecd643b /liblog/config_write.h
parentc1b3c8ef2629eac2a73aa4a95bf43a66edf4cd0f (diff)
downloadplatform-system-core-2ed51d708eda64516ec79ac6397f690de38f0075.tar.gz
platform-system-core-2ed51d708eda64516ec79ac6397f690de38f0075.tar.xz
platform-system-core-2ed51d708eda64516ec79ac6397f690de38f0075.zip
liblog: specify clang format
Switch coding style to match SideEffects: None Test: compile Bug: 27405083 Change-Id: Id426d5c5e3b18f2ceec22b31bbc9781aabf6bcca
Diffstat (limited to 'liblog/config_write.h')
-rw-r--r--liblog/config_write.h44
1 files changed, 20 insertions, 24 deletions
diff --git a/liblog/config_write.h b/liblog/config_write.h
index 882541130..db1a08314 100644
--- a/liblog/config_write.h
+++ b/liblog/config_write.h
@@ -26,30 +26,26 @@ __BEGIN_DECLS
26extern LIBLOG_HIDDEN struct listnode __android_log_transport_write; 26extern LIBLOG_HIDDEN struct listnode __android_log_transport_write;
27extern LIBLOG_HIDDEN struct listnode __android_log_persist_write; 27extern LIBLOG_HIDDEN struct listnode __android_log_persist_write;
28 28
29#define write_transport_for_each(transp, transports) \ 29#define write_transport_for_each(transp, transports) \
30 for ((transp) = node_to_item((transports)->next, \ 30 for ((transp) = node_to_item((transports)->next, \
31 struct android_log_transport_write, node); \ 31 struct android_log_transport_write, node); \
32 ((transp) != node_to_item((transports), \ 32 ((transp) != node_to_item((transports), \
33 struct android_log_transport_write, \ 33 struct android_log_transport_write, node)) && \
34 node)) && \ 34 ((transp) != node_to_item((transp)->node.next, \
35 ((transp) != node_to_item((transp)->node.next, \ 35 struct android_log_transport_write, node)); \
36 struct android_log_transport_write, \ 36 (transp) = node_to_item((transp)->node.next, \
37 node)); \ 37 struct android_log_transport_write, node))
38 (transp) = node_to_item((transp)->node.next, \ 38
39 struct android_log_transport_write, node)) 39#define write_transport_for_each_safe(transp, n, transports) \
40 40 for ((transp) = node_to_item((transports)->next, \
41#define write_transport_for_each_safe(transp, n, transports) \ 41 struct android_log_transport_write, node), \
42 for ((transp) = node_to_item((transports)->next, \ 42 (n) = (transp)->node.next; \
43 struct android_log_transport_write, node), \ 43 ((transp) != node_to_item((transports), \
44 (n) = (transp)->node.next; \ 44 struct android_log_transport_write, node)) && \
45 ((transp) != node_to_item((transports), \ 45 ((transp) != \
46 struct android_log_transport_write, \ 46 node_to_item((n), struct android_log_transport_write, node)); \
47 node)) && \ 47 (transp) = node_to_item((n), struct android_log_transport_write, node), \
48 ((transp) != node_to_item((n), struct android_log_transport_write, \ 48 (n) = (transp)->node.next)
49 node)); \
50 (transp) = node_to_item((n), struct android_log_transport_write, \
51 node), \
52 (n) = (transp)->node.next)
53 49
54LIBLOG_HIDDEN void __android_log_config_write(); 50LIBLOG_HIDDEN void __android_log_config_write();
55LIBLOG_HIDDEN void __android_log_config_write_close(); 51LIBLOG_HIDDEN void __android_log_config_write_close();