subsys/profiling: use a more universal message when perf is running
"Perf is already running" works for `record` but is a little strange when doing `printbuf`, so remove the "already" to make it more universal. Signed-off-by: Yong Cong Sin <ycsin@meta.com> Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
This commit is contained in:
parent
d4cd1be390
commit
8fc6d8adf2
1 changed files with 2 additions and 2 deletions
|
@ -77,7 +77,7 @@ static int perf_init(void)
|
|||
int cmd_perf_record(const struct shell *sh, size_t argc, char **argv)
|
||||
{
|
||||
if (k_work_delayable_is_pending(&perf_data.dwork)) {
|
||||
shell_warn(sh, "Perf is already running");
|
||||
shell_warn(sh, "Perf is running");
|
||||
return -EINPROGRESS;
|
||||
}
|
||||
|
||||
|
@ -104,7 +104,7 @@ int cmd_perf_record(const struct shell *sh, size_t argc, char **argv)
|
|||
int cmd_perf_print(const struct shell *sh, size_t argc, char **argv)
|
||||
{
|
||||
if (k_work_delayable_is_pending(&perf_data.dwork)) {
|
||||
shell_warn(sh, "Perf is already running");
|
||||
shell_warn(sh, "Perf is running");
|
||||
return -EINPROGRESS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue