From: Keith Packard Date: Wed, 22 Apr 2009 22:48:14 +0000 (-0700) Subject: Clean up task list formatting X-Git-Tag: 0.1~40 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=ada6dea04b94be016598566c4c13e6105aaec353 Clean up task list formatting --- diff --git a/ao_task.c b/ao_task.c index 878724c5..47db1277 100644 --- a/ao_task.c +++ b/ao_task.c @@ -193,13 +193,15 @@ ao_task_info(void) { uint8_t i; uint8_t pc_loc; + __xdata struct ao_task *task; for (i = 0; i < ao_num_tasks; i++) { - pc_loc = ao_tasks[i]->stack_count - 17; - printf("%-8s: wchan %04x pc %04x\n", - ao_tasks[i]->name, - (int16_t) ao_tasks[i]->wchan, - (ao_tasks[i]->stack[pc_loc]) | (ao_tasks[i]->stack[pc_loc+1] << 8)); + task = ao_tasks[i]; + pc_loc = task->stack_count - 17; + printf("%12s: wchan %04x pc %04x\n", + (char *) task->name, + (int16_t) task->wchan, + (task->stack[pc_loc]) | (task->stack[pc_loc+1] << 8)); } }