mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
linux/compat.h: add dev_warn()
In order to prevent build errors for copied code from linux introduce dev_warn(). Suggested-by: Scott Wood <oss@buserror.net> Signed-off-by: Andreas Bießmann <andreas@biessmann.org> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
b3ab0fc7dd
commit
88a7fffe38
1 changed files with 2 additions and 0 deletions
|
@ -25,6 +25,8 @@ extern struct p_current *current;
|
|||
printf(fmt, ##args)
|
||||
#define dev_err(dev, fmt, args...) \
|
||||
printf(fmt, ##args)
|
||||
#define dev_warn(dev, fmt, args...) \
|
||||
printf(fmt, ##args)
|
||||
#define printk printf
|
||||
#define printk_once printf
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue