summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/thread.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/thread.c b/src/lib/thread.c
index a07539415f..7d5cdc5b8e 100644
--- a/src/lib/thread.c
+++ b/src/lib/thread.c
@@ -284,14 +284,14 @@ int thread_run(struct thread_handle *handle, enum cb_err (*func)(void *), void *
if (!thread_can_yield(current)) {
printk(BIOS_ERR,
- "ERROR: thread_run() called from non-yielding context!\n");
+ "ERROR: %s() called from non-yielding context!\n", __func__);
return -1;
}
t = get_free_thread();
if (t == NULL) {
- printk(BIOS_ERR, "ERROR: thread_run() No more threads!\n");
+ printk(BIOS_ERR, "ERROR: %s: No more threads!\n", __func__);
return -1;
}
@@ -319,14 +319,14 @@ int thread_run_until(struct thread_handle *handle, enum cb_err (*func)(void *),
if (!thread_can_yield(current)) {
printk(BIOS_ERR,
- "ERROR: thread_run() called from non-yielding context!\n");
+ "ERROR: %s() called from non-yielding context!\n", __func__);
return -1;
}
t = get_free_thread();
if (t == NULL) {
- printk(BIOS_ERR, "ERROR: thread_run() No more threads!\n");
+ printk(BIOS_ERR, "ERROR: %s: No more threads!\n", __func__);
return -1;
}