projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3543e6
)
log: update the comment for log_msg_ret()
author
Simon Glass
<sjg@chromium.org>
Wed, 7 Sep 2022 02:26:53 +0000
(20:26 -0600)
committer
Tom Rini
<trini@konsulko.com>
Thu, 29 Sep 2022 20:07:57 +0000
(16:07 -0400)
Add some advice on string size here.
Signed-off-by: Simon Glass <sjg@chromium.org>
include/log.h
patch
|
blob
|
history
diff --git
a/include/log.h
b/include/log.h
index
df497ba
..
8a7b961
100644
(file)
--- 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); \