Browse Source

Make the asmsh_log_perror() macro non variadic again ;)

Yann Weber 1 year ago
parent
commit
46924b5df0
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      logger.h

+ 2
- 2
logger.h View File

48
 	asmsh_log(_default_logger, ASMSH_ERR, __FUNCTION__, msg_args)
48
 	asmsh_log(_default_logger, ASMSH_ERR, __FUNCTION__, msg_args)
49
 #define asmsh_log_fatal(msg_args...) \
49
 #define asmsh_log_fatal(msg_args...) \
50
 	asmsh_log(_default_logger, ASMSH_FATAL, __FUNCTION__, msg_args)
50
 	asmsh_log(_default_logger, ASMSH_FATAL, __FUNCTION__, msg_args)
51
-#define asmsh_log_perror(msg_args...) \
52
-	asmsh_log_error("%s : %s", msg_args, strerror(errno));
51
+#define asmsh_log_perror(msg) \
52
+	asmsh_log_error("%s : %s", msg, strerror(errno));
53
 
53
 
54
 #define ASMSH_LOG_BUFFER_ALLOC 4096
54
 #define ASMSH_LOG_BUFFER_ALLOC 4096
55
 
55
 

Loading…
Cancel
Save