TcpSocketMonitor - fix macro arg should be in paren warning

warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]

Test: builds
Bug: 153035880
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I3eeeced8f26fd54626652511514881ec0a08366d
Merged-In: I3eeeced8f26fd54626652511514881ec0a08366d
diff --git a/server/TcpSocketMonitor.cpp b/server/TcpSocketMonitor.cpp
index f4b505d..c18fe92 100644
--- a/server/TcpSocketMonitor.cpp
+++ b/server/TcpSocketMonitor.cpp
@@ -70,9 +70,10 @@
 
 // Helper macro for reading fields into struct tcp_info and handling different struct tcp_info
 // versions in the kernel.
-#define TCPINFO_GET(ptr, fld, len, zero) \
-        (((ptr) != nullptr && (offsetof(struct tcp_info, fld) + sizeof((ptr)->fld)) < len) ? \
-        (ptr)->fld : zero)
+#define TCPINFO_GET(ptr, fld, len, zero)                                                 \
+    (((ptr) != nullptr && (offsetof(struct tcp_info, fld) + sizeof((ptr)->fld)) < (len)) \
+             ? (ptr)->fld                                                                \
+             : (zero))
 
 static void tcpInfoPrint(DumpWriter &dw, Fwmark mark, const struct inet_diag_msg *sockinfo,
                          const struct tcp_info *tcpinfo, uint32_t tcpinfoLen) {