Skip to content

Commit 6508bf1

Browse files
committed
dram: improve debugging
Add the function name, that was called in DRAM from LL context to simplify debugging. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
1 parent e35fdb5 commit 6508bf1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

zephyr/include/sof/lib/memory.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,11 @@ bool ll_sch_is_current(void);
2525
#define ll_sch_is_current() false
2626
#endif
2727

28-
static inline void assert_can_be_cold(void)
28+
static inline void __assert_can_be_cold(const char *fn)
2929
{
30-
assert(!ll_sch_is_current());
30+
__ASSERT(!ll_sch_is_current(), "%s() called from an LL thread!", fn);
3131
}
32+
#define assert_can_be_cold() __assert_can_be_cold(__func__)
3233
#else
3334
#define assert_can_be_cold() do {} while (0)
3435
#endif

0 commit comments

Comments
 (0)