Use PROCESS_NAME_STRING macro to handle NO_PROCESS_NAMES
This commit is contained in:
parent
6ec85fe079
commit
44f4ee9315
8 changed files with 13 additions and 15 deletions
|
@ -58,7 +58,7 @@ PROCESS_THREAD(shell_ps_process, ev, data)
|
|||
|
||||
shell_output_str(&ps_command, "Processes:", "");
|
||||
for(p = PROCESS_LIST(); p != NULL; p = p->next) {
|
||||
shell_output_str(&ps_command, (char *)p->name, "");
|
||||
shell_output_str(&ps_command, PROCESS_NAME_STRING(p), "");
|
||||
}
|
||||
|
||||
PROCESS_END();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue