diff --git a/examples/dac/dac_main.c b/examples/dac/dac_main.c index 14b9942ba..d0ef1c6b1 100644 --- a/examples/dac/dac_main.c +++ b/examples/dac/dac_main.c @@ -110,7 +110,7 @@ static void print_cmds(FAR const char *header, size_t ncmds, FAR const char *trailer) { - printf(header); + printf("%s", header); while (ncmds--) { printf(" %s %s %c", cmds->name, cmds->args, @@ -118,7 +118,7 @@ static void print_cmds(FAR const char *header, cmds++; } - printf(trailer); + printf("%s", trailer); } static const struct command *find_cmd(FAR const char *name,