From: Francois-Xavier Le Bail Date: Wed, 9 Feb 2022 18:12:26 +0000 (+0100) Subject: Zephyr: Fix the ZEPHYR_PRINT() macro X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/b6fdd482ceb0afce2508eebf2e863df1b4071cb2 Zephyr: Fix the ZEPHYR_PRINT() macro A block is needed. --- 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)