From: Simon Glass Date: Wed, 7 Sep 2022 02:26:53 +0000 (-0600) Subject: log: update the comment for log_msg_ret() X-Git-Tag: baikal/mips/sdk5.8.2~5^2~202^2^2~40 X-Git-Url: https://git.baikalelectronics.ru/?a=commitdiff_plain;h=18c2d2cb192d27ff7c2b9429c20907301c4f0186;p=uboot.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); \