diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2023-02-02 14:34:15 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-02-03 08:59:46 +0100 |
commit | b885cfc731c710eaf1efd55211b4b62fa5ade166 (patch) | |
tree | 4a9f1849658990a57383cc8bbdc419a2ca3fbbde /include/printk.h | |
parent | b58bffa85df81a32a6bdf3d732dc8987834ba83f (diff) | |
download | barebox-b885cfc731c710eaf1efd55211b4b62fa5ade166.tar.gz |
include: printk: retire printk_once for pr_debug_once
printk is just printf and KERN_DEBUG is just "", so printk_once(KERN_DEBUG
doesn't do what's promised. Replace instead with pr_debug_once, which
does what one would expect.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20230202133415.319020-3-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/printk.h')
-rw-r--r-- | include/printk.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/printk.h b/include/printk.h index 90c45afd9f..6f8635fae2 100644 --- a/include/printk.h +++ b/include/printk.h @@ -31,16 +31,6 @@ void __attribute__((noreturn)) panic(const char *fmt, ...); #define printk printf -#define printk_once(fmt, ...) \ -({ \ - static bool __print_once ; \ - \ - if (!__print_once) { \ - __print_once = true; \ - printk(fmt, ##__VA_ARGS__); \ - } \ -}) - enum { DUMP_PREFIX_NONE, DUMP_PREFIX_ADDRESS, |