Use PROCESS_NAME_STRING macro to handle NO_PROCESS_NAMES

This commit is contained in:
David Kopf 2011-08-03 11:08:40 -04:00
parent 6ec85fe079
commit 44f4ee9315
8 changed files with 13 additions and 15 deletions

View file

@ -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();