From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Wed, 26 Sep 2018 15:54:59 -0600 Subject: [U-Boot] [PATCH 01/22] log: Correct definition of log_msg_ret() In-Reply-To: <20180926215520.87168-1-sjg@chromium.org> References: <20180926215520.87168-1-sjg@chromium.org> Message-ID: <20180926215520.87168-2-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- include/log.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/log.h b/include/log.h index 653fb8d853e..75ff1e1160c 100644 --- a/include/log.h +++ b/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 /** -- 2.19.0.605.g01d371f741-goog