log: Correct definition of log_msg_ret()
authorSimon Glass <sjg@chromium.org>
Tue, 2 Oct 2018 11:22:31 +0000 (05:22 -0600)
committerSimon Glass <sjg@chromium.org>
Mon, 8 Oct 2018 14:30:22 +0000 (08:30 -0600)
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>
include/log.h

index 653fb8d853ec77ca96283f2f3f2487185ff55f12..75ff1e1160c91ed0a91ead38762dc8742e02a3f9 100644 (file)
@@ -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
 
 /**