Explorar o código

log: Correct definition of log_msg_ret()

This macro should have two parameters, not one. Fix it so that it
correctly resolves to _ret when logging is disabled.

Signed-off-by: Simon Glass <sjg@chromium.org>
Simon Glass %!s(int64=6) %!d(string=hai) anos
pai
achega
fbcf37e48e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      include/log.h

+ 1 - 1
include/log.h

@@ -175,7 +175,7 @@ void __assert_fail(const char *assertion, const char *file, unsigned int line,
 	})
 #else
 #define log_ret(_ret) (_ret)
-#define log_msg_ret(_ret) (_ret)
+#define log_msg_ret(_msg, _ret) (_ret)
 #endif
 
 /**