Skip to content

Commit

Permalink
nshlib: Add missing newline in cmd_pidof output
Browse files Browse the repository at this point in the history
Add newline at the end of cmd_pidof to show nsh
prompt correctly.

Before this patch:
```
nsh> pidof wifi
3 nsh>
```

After:
```
nsh> pidof wifi
3
nsh>
```
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
  • Loading branch information
no1wudi committed Sep 27, 2024
1 parent d2214c2 commit 38b242b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nshlib/nsh_proccmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,8 @@ int cmd_pidof(FAR struct nsh_vtbl_s *vtbl, int argc, FAR char **argv)
nsh_output(vtbl, "%d ", pids[i]);
}

nsh_output(vtbl, "\n");

return OK;
}
#endif
Expand Down

0 comments on commit 38b242b

Please sign in to comment.