Skip to content
Snippets Groups Projects

improve error logging

Merged swym requested to merge swym/firmware:hwlock_pc into master
All threads resolved!
Files
2
@@ -27,7 +27,12 @@ int hwlock_acquire(enum hwlock_periph p, TickType_t wait)
}
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;
}
Loading