Skip to content
Snippets Groups Projects
Commit 28e5deec authored by swym's avatar swym
Browse files

hw-lock: log return address when lock is busy

parent 4477ca10
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,12 @@ int hwlock_acquire(enum hwlock_periph p, TickType_t wait) ...@@ -27,7 +27,12 @@ int hwlock_acquire(enum hwlock_periph p, TickType_t wait)
} }
if (xSemaphoreTake(hwlock_mutex[p], wait) != pdTRUE) { if (xSemaphoreTake(hwlock_mutex[p], wait) != pdTRUE) {
LOG_WARN("hwlock", "Lock %u is busy.", p); LOG_WARN(
"hwlock",
"Lock %u is busy. [pc %p]",
p,
__builtin_return_address(0)
);
return -EBUSY; return -EBUSY;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment