From 295f32ac1be175937d925c3324dfdf8ff7fe678d Mon Sep 17 00:00:00 2001 From: Ludwig Ortmann Date: Tue, 1 Jul 2014 20:11:13 +0200 Subject: [PATCH] sys/ps: fix comment style, superfluous declaration --- sys/ps/ps.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/sys/ps/ps.c b/sys/ps/ps.c index 6508191115..b4087ecaec 100644 --- a/sys/ps/ps.c +++ b/sys/ps/ps.c @@ -39,7 +39,6 @@ const char *state_names[] = { */ void thread_print_all(void) { - extern unsigned long hwtimer_now(void); const char queued_name[] = {'_', 'Q'}; int i; int overall_stacksz = 0; @@ -55,10 +54,10 @@ void thread_print_all(void) tcb_t *p = (tcb_t *)sched_threads[i]; if (p != NULL) { - int state = p->status; // copy state - const char *sname = state_names[state]; // get state name - const char *queued = &queued_name[(int)(state >= STATUS_ON_RUNQUEUE)]; // get queued flag - int stacksz = p->stack_size; // get stack size + int state = p->status; /* copy state */ + const char *sname = state_names[state]; /* get state name */ + const char *queued = &queued_name[(int)(state >= STATUS_ON_RUNQUEUE)]; /* get queued flag */ + int stacksz = p->stack_size; /* get stack size */ #if SCHEDSTATISTICS int runtime_ticks = sched_pidlist[i].runtime_ticks / (hwtimer_now()/1000UL + 1); int switches = sched_pidlist[i].schedules;