mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-17 15:32:21 +08:00
Add printflike to all printf like functions
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:

committed by
Petro Karashchenko

parent
5c84c47cad
commit
c252ec1481
@@ -217,7 +217,7 @@ int cmd_pmconfig(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
||||
boardctl(BOARDIOC_PM_CONTROL, (uintptr_t)&ctrl);
|
||||
sleep_count = ctrl.count;
|
||||
|
||||
nsh_output(vtbl, "Last state %d, Next state %d",
|
||||
nsh_output(vtbl, "Last state %d, Next state %d"
|
||||
"PM stay [%d, %d, %d, %d]\n",
|
||||
last_state, next_state, normal_count, idle_count,
|
||||
standby_count, sleep_count);
|
||||
@@ -611,7 +611,7 @@ int cmd_uname(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
||||
nsh_output(vtbl, " ");
|
||||
}
|
||||
|
||||
nsh_output(vtbl, str);
|
||||
nsh_output(vtbl, "%s", str);
|
||||
first = false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user