summaryrefslogtreecommitdiff
path: root/print-zephyr.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2022-02-09 19:12:26 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2022-02-09 19:18:10 +0100
commitb6fdd482ceb0afce2508eebf2e863df1b4071cb2 (patch)
treed9ec619fbc8cd04bbff5c4ea26543c9afa389f93 /print-zephyr.c
parent255c1cbcf3300216bcd23a0df63493ae37e6d70f (diff)
downloadtcpdump-b6fdd482ceb0afce2508eebf2e863df1b4071cb2.tar.gz
Zephyr: Fix the ZEPHYR_PRINT() macro
A block is needed.
Diffstat (limited to 'print-zephyr.c')
-rw-r--r--print-zephyr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/print-zephyr.c b/print-zephyr.c
index b3d897e0..11e1e593 100644
--- a/print-zephyr.c
+++ b/print-zephyr.c
@@ -140,8 +140,7 @@ str_to_lower(const char *string)
}
#define ZEPHYR_PRINT(str1,str2) \
-ND_PRINT("%s", str1); \
-fn_print_str(ndo, (const u_char *)str2);
+{ ND_PRINT("%s", (str1)); fn_print_str(ndo, (const u_char *)(str2)); }
void
zephyr_print(netdissect_options *ndo, const u_char *cp, u_int length)