Quellcode durchsuchen

Make the asmsh_log_perror() macro non variadic again ;)

Yann Weber vor 1 Jahr
Ursprung
Commit
46924b5df0
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2
    2
      logger.h

+ 2
- 2
logger.h Datei anzeigen

@@ -48,8 +48,8 @@
48 48
 	asmsh_log(_default_logger, ASMSH_ERR, __FUNCTION__, msg_args)
49 49
 #define asmsh_log_fatal(msg_args...) \
50 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 54
 #define ASMSH_LOG_BUFFER_ALLOC 4096
55 55
 

Laden…
Abbrechen
Speichern