[PATCH] use ANSI formulation of variardic macros, MSVC can't build with GCC formulation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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,

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux