[PATCH] Use ANSI formulation of variardic macros, MSVC can't build with GCC formulation
Norman Hamer
NHamer at absolute.com
Mon Oct 31 11:56:16 PDT 2022
Use ANSI formulation of variardic macros, MSVC can't build
with GCC formulation
Signed-off-by: Norman Hamer <nhamer at absolute.com>
---
src/utils/wpa_debug.h | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/src/utils/wpa_debug.h b/src/utils/wpa_debug.h
index c6d5cc647..1483ae23a 100644
--- a/src/utils/wpa_debug.h
+++ b/src/utils/wpa_debug.h
@@ -26,7 +26,7 @@ enum {
#ifdef CONFIG_NO_STDOUT_DEBUG
#define wpa_debug_print_timestamp() do { } while (0)
-#define wpa_printf(args...) do { } while (0)
+#define wpa_printf(...) do { } while (0)
#define wpa_hexdump(l,t,b,le) do { } while (0)
#define wpa_hexdump_buf(l,t,b) do { } while (0)
#define wpa_hexdump_key(l,t,b,le) do { } while (0)
@@ -36,7 +36,7 @@ enum {
#define wpa_debug_open_file(p) do { } while (0)
#define wpa_debug_close_file() do { } while (0)
#define wpa_debug_setup_stdout() do { } while (0)
-#define wpa_dbg(args...) do { } while (0)
+#define wpa_dbg(...) do { } while (0)
static inline int wpa_debug_reopen_file(void)
{
@@ -154,18 +154,18 @@ void wpa_hexdump_ascii_key(int level, const char *title, const void *buf,
* needed in the control interface while wpa_msg() has to be used for anything
* that needs to shown to control interface monitors.
*/
-#define wpa_dbg(args...) wpa_msg(args)
+#define wpa_dbg(...) wpa_msg(__VA_ARGS__ )
#endif /* CONFIG_NO_STDOUT_DEBUG */
#ifdef CONFIG_NO_WPA_MSG
-#define wpa_msg(args...) do { } while (0)
-#define wpa_msg_ctrl(args...) do { } while (0)
-#define wpa_msg_global(args...) do { } while (0)
-#define wpa_msg_global_ctrl(args...) do { } while (0)
-#define wpa_msg_no_global(args...) do { } while (0)
-#define wpa_msg_global_only(args...) do { } while (0)
+#define wpa_msg(...) do { } while (0)
+#define wpa_msg_ctrl(...) do { } while (0)
+#define wpa_msg_global(...) do { } while (0)
+#define wpa_msg_global_ctrl(...) do { } while (0)
+#define wpa_msg_no_global(...) do { } while (0)
+#define wpa_msg_global_only(...) do { } while (0)
#define wpa_msg_register_cb(f) do { } while (0)
#define wpa_msg_register_ifname_cb(f) do { } while (0)
#else /* CONFIG_NO_WPA_MSG */
@@ -281,7 +281,7 @@ void wpa_msg_register_ifname_cb(wpa_msg_get_ifname_func func);
#endif /* CONFIG_NO_WPA_MSG */
#ifdef CONFIG_NO_HOSTAPD_LOGGER
-#define hostapd_logger(args...) do { } while (0)
+#define hostapd_logger(...) do { } while (0)
#define hostapd_logger_register_cb(f) do { } while (0)
#else /* CONFIG_NO_HOSTAPD_LOGGER */
void hostapd_logger(void *ctx, const u8 *addr, unsigned int module, int level,
--
2.28.0.windows.1
More information about the Hostap
mailing list