logging: backend: uart: compile the `uart_dev` pointer conditionally
Compile the `uart_dev` pointer only when necessary
(when `zephyr,log-uart` is used), this saves 4 bytes in
32-bit systems and 8 bytes in 64-bit systems.
Signed-off-by:
Yong Cong Sin <ycsin@meta.com>
Loading
Please sign in to comment