From: Simon Glass Date: Wed, 7 Sep 2022 02:26:53 +0000 (-0600) Subject: log: update the comment for log_msg_ret() X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-favicon.png?a=commitdiff_plain;h=b7f134eeceb51c9bfe7ab82e0e5f751ddcb74976;p=u-boot.git log: update the comment for log_msg_ret() Add some advice on string size here. Signed-off-by: Simon Glass --- diff --git a/include/log.h b/include/log.h index df497bad18..8a7b961bbf 100644 --- a/include/log.h +++ b/include/log.h @@ -322,7 +322,10 @@ void __assert_fail(const char *assertion, const char *file, unsigned int line, * * or: * - * return log_msg_ret("fred failed", fred_call()); + * return log_msg_ret("get", fred_call()); + * + * It is recommended to use <= 3 characters for the name since this will only + * use 4 bytes in rodata */ #define log_ret(_ret) ({ \ int __ret = (_ret); \