From 8c87941b00a412fbe7209d5f2b4bb045d10747ba Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Sat, 5 Oct 2013 13:36:02 -0700 Subject: [PATCH] Don't use variadic macros of the form args... This is a GCC extension and is not portable. --- include/iscsi-private.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/iscsi-private.h b/include/iscsi-private.h index be85dbc..a905056 100644 --- a/include/iscsi-private.h +++ b/include/iscsi-private.h @@ -321,10 +321,10 @@ void iscsi_set_noautoreconnect(struct iscsi_context *iscsi, int state); void iscsi_decrement_iface_rr(void); -#define ISCSI_LOG(iscsi, level, format, args...) \ +#define ISCSI_LOG(iscsi, level, format, ...) \ do { \ if (level <= iscsi->log_level && iscsi->log_fn) { \ - iscsi_log_message(iscsi, level, format, ## args); \ + iscsi_log_message(iscsi, level, format, ## __VA_ARGS__); \ } \ } while (0)