Skip to content
Snippets Groups Projects
Commit e017f8a5 authored by Sebastian Meiling's avatar Sebastian Meiling
Browse files

core: fix format errors in debug output

parent 65cd43e7
No related branches found
No related tags found
No related merge requests found
...@@ -92,7 +92,7 @@ int __attribute__((used)) sched_run(void) ...@@ -92,7 +92,7 @@ int __attribute__((used)) sched_run(void)
thread_t *next_thread = container_of(sched_runqueues[nextrq].next->next, thread_t, rq_entry); thread_t *next_thread = container_of(sched_runqueues[nextrq].next->next, thread_t, rq_entry);
DEBUG("sched_run: active thread: %" PRIkernel_pid ", next thread: %" PRIkernel_pid "\n", DEBUG("sched_run: active thread: %" PRIkernel_pid ", next thread: %" PRIkernel_pid "\n",
(active_thread == NULL) ? KERNEL_PID_UNDEF : active_thread->pid, (kernel_pid_t)((active_thread == NULL) ? KERNEL_PID_UNDEF : active_thread->pid),
next_thread->pid); next_thread->pid);
if (active_thread == next_thread) { if (active_thread == next_thread) {
...@@ -162,7 +162,7 @@ void sched_set_status(thread_t *process, unsigned int status) ...@@ -162,7 +162,7 @@ void sched_set_status(thread_t *process, unsigned int status)
{ {
if (status >= STATUS_ON_RUNQUEUE) { if (status >= STATUS_ON_RUNQUEUE) {
if (!(process->status >= STATUS_ON_RUNQUEUE)) { if (!(process->status >= STATUS_ON_RUNQUEUE)) {
DEBUG("sched_set_status: adding thread %" PRIkernel_pid " to runqueue %" PRIu16 ".\n", DEBUG("sched_set_status: adding thread %" PRIkernel_pid " to runqueue %" PRIu8 ".\n",
process->pid, process->priority); process->pid, process->priority);
clist_rpush(&sched_runqueues[process->priority], &(process->rq_entry)); clist_rpush(&sched_runqueues[process->priority], &(process->rq_entry));
runqueue_bitcache |= 1 << process->priority; runqueue_bitcache |= 1 << process->priority;
...@@ -170,7 +170,7 @@ void sched_set_status(thread_t *process, unsigned int status) ...@@ -170,7 +170,7 @@ void sched_set_status(thread_t *process, unsigned int status)
} }
else { else {
if (process->status >= STATUS_ON_RUNQUEUE) { if (process->status >= STATUS_ON_RUNQUEUE) {
DEBUG("sched_set_status: removing thread %" PRIkernel_pid " to runqueue %" PRIu16 ".\n", DEBUG("sched_set_status: removing thread %" PRIkernel_pid " to runqueue %" PRIu8 ".\n",
process->pid, process->priority); process->pid, process->priority);
clist_lpop(&sched_runqueues[process->priority]); clist_lpop(&sched_runqueues[process->priority]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment