projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
0a1b229
)
Clean up task list formatting
author
Keith Packard
<keithp@keithp.com>
Wed, 22 Apr 2009 22:48:14 +0000
(15:48 -0700)
committer
Keith Packard
<keithp@keithp.com>
Wed, 22 Apr 2009 22:48:14 +0000
(15:48 -0700)
ao_task.c
patch
|
blob
|
history
diff --git
a/ao_task.c
b/ao_task.c
index 878724c5a0ba484be8715f51fd636664493127ee..47db1277c11c27e20247a0b2d8b3f2f54c04fdf8 100644
(file)
--- a/
ao_task.c
+++ b/
ao_task.c
@@
-193,13
+193,15
@@
ao_task_info(void)
{
uint8_t i;
uint8_t pc_loc;
{
uint8_t i;
uint8_t pc_loc;
+ __xdata struct ao_task *task;
for (i = 0; i < ao_num_tasks; i++) {
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));
}
}
}
}