diff --git a/samples/subsys/logging/syst/src/main.c b/samples/subsys/logging/syst/src/main.c index c0ae6a4ac61..5c195512976 100644 --- a/samples/subsys/logging/syst/src/main.c +++ b/samples/subsys/logging/syst/src/main.c @@ -46,6 +46,7 @@ void log_msgs(void) char c = '!'; char *s = "static str"; + char *s1 = "c str"; char vs0[32]; char vs1[32]; @@ -67,7 +68,7 @@ void log_msgs(void) snprintk(&vs1[0], sizeof(vs1), "%s", "another dynamic str"); LOG_DBG("char %c", c); - LOG_DBG("s str %s", s); + LOG_DBG("s str %s %s", s, s1); #ifdef CONFIG_LOG1 LOG_DBG("d str %s", log_strdup(vs0));