mirror of
https://github.com/Dasharo/zephyr.git
synced 2026-03-06 14:57:20 -08:00
drivers: console: rtt_console: undefined reference
Disabling PRINTK with RTT enabled caused a compile error (undefined reference to __printk_hook_install'). Fixes: #50108 Signed-off-by: Florian Grandel <jerico.dev@gmail.com>
This commit is contained in:
committed by
Carles Cufí
parent
2636bb4e4a
commit
2a6d82b2d8
@@ -82,7 +82,9 @@ static int rtt_console_init(const struct device *d)
|
||||
{
|
||||
ARG_UNUSED(d);
|
||||
|
||||
#ifdef CONFIG_PRINTK
|
||||
__printk_hook_install(rtt_console_out);
|
||||
#endif
|
||||
__stdout_hook_install(rtt_console_out);
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user