summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaul E Rangel <rrangel@chromium.org>2021-11-02 13:42:33 -0600
committerRaul Rangel <rrangel@chromium.org>2021-11-04 17:04:21 +0000
commitba51e29953d0ac2534146363e0be08ab1394dee2 (patch)
tree73b887e4e9b1e70760afef9f94473ea7ac81d6c9
parent111de557ee5b76a867ab9e5abf02fe409e90db0d (diff)
downloadcoreboot-ba51e29953d0ac2534146363e0be08ab1394dee2.tar.gz
lib/thread: Add ERROR prefix to error messages
This makes it easier to grep for errors. BUG=b:179699789 TEST=Boot guybrush Signed-off-by: Raul E Rangel <rrangel@chromium.org> Change-Id: I7eecdfed6046b7d609069e7427f6883a4e9e521d Reviewed-on: https://review.coreboot.org/c/coreboot/+/58866 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Rob Barnes <robbarnes@google.com>
-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 da6189d6f1..a07539415f 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,
- "thread_run() called from non-yielding context!\n");
+ "ERROR: thread_run() called from non-yielding context!\n");
return -1;
}
t = get_free_thread();
if (t == NULL) {
- printk(BIOS_ERR, "thread_run() No more threads!\n");
+ printk(BIOS_ERR, "ERROR: thread_run() No more threads!\n");
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,
- "thread_run() called from non-yielding context!\n");
+ "ERROR: thread_run() called from non-yielding context!\n");
return -1;
}
t = get_free_thread();
if (t == NULL) {
- printk(BIOS_ERR, "thread_run() No more threads!\n");
+ printk(BIOS_ERR, "ERROR: thread_run() No more threads!\n");
return -1;
}