Skip to content

Commit 2a6d82b

Browse files
Florian Grandelcarlescufi
authored andcommitted
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 <[email protected]>
1 parent 2636bb4 commit 2a6d82b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/console/rtt_console.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ static int rtt_console_init(const struct device *d)
8282
{
8383
ARG_UNUSED(d);
8484

85+
#ifdef CONFIG_PRINTK
8586
__printk_hook_install(rtt_console_out);
87+
#endif
8688
__stdout_hook_install(rtt_console_out);
8789

8890
return 0;

0 commit comments

Comments
 (0)