aboutsummaryrefslogtreecommitdiff
path: root/include/log.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-09-06 20:26:53 -0600
committerTom Rini <trini@konsulko.com>2022-09-29 16:07:57 -0400
commitb7f134eeceb51c9bfe7ab82e0e5f751ddcb74976 (patch)
tree6a2d459d084af335692b1405a06eb56a61c77829 /include/log.h
parentf3543e69442ca393e52df253d9c5d45bc189d471 (diff)
downloadu-boot-b7f134eeceb51c9bfe7ab82e0e5f751ddcb74976.zip
u-boot-b7f134eeceb51c9bfe7ab82e0e5f751ddcb74976.tar.gz
u-boot-b7f134eeceb51c9bfe7ab82e0e5f751ddcb74976.tar.bz2
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.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/log.h b/include/log.h
index df497ba..8a7b961 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); \