Skip to content
Commit aa71ed4a authored by Yong Cong Sin's avatar Yong Cong Sin Committed by Anas Nashif
Browse files

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: default avatarYong Cong Sin <ycsin@meta.com>
parent 2049aa8d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment