summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2022-06-27 14:43:39 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-07-01 05:56:48 +0000
commit0ed2fb872382b22ddfad186f0d0b495481bad55a (patch)
tree11e175a9296c4d2d9bf921055c11acd33f8e5336 /core
parent2826384cf8484d2c19d6489e0da03e9585a0bc80 (diff)
downloadchrome-ec-0ed2fb872382b22ddfad186f0d0b495481bad55a.tar.gz
core/host/stack_trace.c: Format with clang-format
BUG=b:236386294 BRANCH=none TEST=none Change-Id: Icc0bf3336285f2af5db00d254c68f732ac46eecc Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3729843 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'core')
-rw-r--r--core/host/stack_trace.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/host/stack_trace.c b/core/host/stack_trace.c
index adef66dd44..54163c66ad 100644
--- a/core/host/stack_trace.c
+++ b/core/host/stack_trace.c
@@ -45,8 +45,8 @@ static void __attribute__((noinline)) _task_dump_trace_impl(int offset)
for (i = 0; i < sz - offset; ++i) {
fprintf(stderr, "#%-2d %s\n", i, messages[i]);
/* %p is correct (as opposed to %pP) since this is the host */
- sprintf(buf, "addr2line %p -e %s",
- trace[i + offset], __get_prog_name());
+ sprintf(buf, "addr2line %p -e %s", trace[i + offset],
+ __get_prog_name());
file = popen(buf, "r");
if (file) {
nb = fread(buf, 1, sizeof(buf) - 1, file);
@@ -77,8 +77,8 @@ static void __attribute__((noinline)) _task_dump_trace_dispatch(int sig)
} else if (in_interrupt_context()) {
fprintf(stderr, "Stack trace of ISR:\n");
} else {
- fprintf(stderr, "Stack trace of task %d (%s):\n",
- running, task_get_name(running));
+ fprintf(stderr, "Stack trace of task %d (%s):\n", running,
+ task_get_name(running));
}
if (need_dispatch) {