We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e74547b commit 78b6b6eCopy full SHA for 78b6b6e
components/finsh/shell.c
@@ -542,7 +542,7 @@ static void finsh_thread_entry(void *parameter)
542
finsh_wait_auth();
543
#endif
544
545
- rt_kprintf(FINSH_PROMPT);
+ rt_kprintf("%s", FINSH_PROMPT);
546
547
while (1)
548
{
@@ -842,7 +842,7 @@ static void finsh_thread_entry(void *parameter)
842
rt_kprintf("\n");
843
msh_exec(shell->line, shell->line_position);
844
845
846
rt_memset(shell->line, 0, sizeof(shell->line));
847
shell->line_curpos = shell->line_position = 0;
848
continue;
@@ -1019,4 +1019,3 @@ int finsh_system_init(void)
1019
INIT_APP_EXPORT(finsh_system_init);
1020
1021
#endif /* RT_USING_FINSH */
1022
-
0 commit comments