diff options
author | Simon Glass <sjg@chromium.org> | 2022-09-07 05:26:53 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-09-29 23:07:57 +0300 |
commit | b7f134eeceb51c9bfe7ab82e0e5f751ddcb74976 (patch) | |
tree | 6a2d459d084af335692b1405a06eb56a61c77829 /include/log.h | |
parent | f3543e69442ca393e52df253d9c5d45bc189d471 (diff) | |
download | u-boot-b7f134eeceb51c9bfe7ab82e0e5f751ddcb74976.tar.xz |
log: update the comment for log_msg_ret()
Add some advice on string size here.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/log.h')
-rw-r--r-- | include/log.h | 5 |
1 files changed, 4 insertions, 1 deletions
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); \ |