From 41f63ebafc1c4e01bbcbb22c548ecd13c1f1e04f Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Tue, 14 Jul 2020 17:33:43 -0400 Subject: [PATCH] chore: use debuglog --- runtime/src/local_runqueue_list.c | 8 ++++---- runtime/src/local_runqueue_minheap.c | 9 ++++----- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/runtime/src/local_runqueue_list.c b/runtime/src/local_runqueue_list.c index 888367d..ed27296 100644 --- a/runtime/src/local_runqueue_list.c +++ b/runtime/src/local_runqueue_list.c @@ -58,9 +58,8 @@ local_runqueue_list_get_next() done: return sandbox; sandbox_allocate_err: - fprintf(stderr, - "local_runqueue_list_get_next failed to allocate sandbox, returning request to global request " - "scheduler\n"); + debuglog("local_runqueue_list_get_next failed to allocate sandbox, returning request to global request " + "scheduler\n"); global_request_scheduler_add(sandbox_request); err: sandbox = NULL; @@ -90,7 +89,8 @@ local_runqueue_list_append(struct sandbox *sandbox_to_append) } /** - * Conditionally checks to see if current sandbox should be preempted FIFO doesn't preempt, so just return. + * Conditionally checks to see if current sandbox should be preempted. + * FIFO doesn't preempt, so just return. */ void local_runqueue_list_preempt(ucontext_t *user_context) diff --git a/runtime/src/local_runqueue_minheap.c b/runtime/src/local_runqueue_minheap.c index 014910b..6ad8c7a 100644 --- a/runtime/src/local_runqueue_minheap.c +++ b/runtime/src/local_runqueue_minheap.c @@ -102,8 +102,8 @@ local_runqueue_minheap_get_next() done: return sandbox; sandbox_allocate_err: - fprintf(stderr, "local_runqueue_minheap_get_next failed to allocating sandbox. Readding request to global " - "request scheduler\n"); + debuglog("local_runqueue_minheap_get_next failed to allocating sandbox. Readding request to global " + "request scheduler\n"); global_request_scheduler_add(sandbox_request); err: sandbox = NULL; @@ -178,9 +178,8 @@ done: return; err_sandbox_allocate: assert(sandbox_request); - fprintf(stderr, - "local_runqueue_minheap_preempt failed to allocate sandbox, returning request to global request " - "scheduler\n"); + debuglog("local_runqueue_minheap_preempt failed to allocate sandbox, returning request to global request " + "scheduler\n"); global_request_scheduler_add(sandbox_request); err: goto done;