mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
log: Check printf() arguments
At present logging does not check printf() arguments. Now that all users have been corrected, enable this to prevent further problems. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
0c89a318dc
commit
ed4e933d13
|
@ -73,7 +73,8 @@ static inline int log_uc_cat(enum uclass_id id)
|
|||
* @return 0 if log record was emitted, -ve on error
|
||||
*/
|
||||
int _log(enum log_category_t cat, enum log_level_t level, const char *file,
|
||||
int line, const char *func, const char *fmt, ...);
|
||||
int line, const char *func, const char *fmt, ...)
|
||||
__attribute__ ((format (__printf__, 6, 7)));
|
||||
|
||||
/* Define this at the top of a file to add a prefix to debug messages */
|
||||
#ifndef pr_fmt
|
||||
|
|
Loading…
Reference in New Issue
Block a user