Add printflike to all printf like functions

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2022-07-17 14:05:23 +08:00
committed by Petro Karashchenko
parent 5c84c47cad
commit c252ec1481
31 changed files with 143 additions and 138 deletions

View File

@@ -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;
}
}