Skip to content
Commit 0a09250d authored by Michael Scott's avatar Michael Scott Committed by Anas Nashif
Browse files

net: lwm2m: remove IP CONFIG checks in lwm2m_sprint_ip_addr()

CONFIG_NET_IPV* checks are not needed in lwm2m_sprint_ip_addr().  The
functions used are always available.  Worse, having these checks
forces the need to enable CONFIG_NET_IPV4 or IPV6 when it's not really
needed (LwM2M could be using an offloaded IP stack).

NOTE: Also fixes an issue where a NULL is returned when the IP address
is unknown.  This usually ends up with a crash/abort in the logging
code.

Fixes: https://github.com/zephyrproject-rtos/zephyr/issues/17401



Signed-off-by: default avatarMichael Scott <mike@foundries.io>
parent f0780603
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment