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:
Florian Grandel
2022-09-09 20:08:24 +02:00
committed by Carles Cufí
parent 2636bb4e4a
commit 2a6d82b2d8

View File

@@ -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;