diff --git a/subsys/logging/log_msg.c b/subsys/logging/log_msg.c index 962f84c8342..456cb0f94a4 100644 --- a/subsys/logging/log_msg.c +++ b/subsys/logging/log_msg.c @@ -52,7 +52,8 @@ void z_impl_z_log_msg_static_create(const void *source, struct log_msg *msg; if (inlen > 0) { - uint32_t flags = CBPRINTF_PACKAGE_CONVERT_RW_STR; + uint32_t flags = CBPRINTF_PACKAGE_CONVERT_RW_STR | + CBPRINTF_PACKAGE_CONVERT_PTR_CHECK; uint16_t strl[4]; int len;