On 5/24/2022 4:33 AM, viktor.barna@xxxxxxxxxx wrote:
From: Viktor Barna <viktor.barna@xxxxxxxxxx>
[snip]
+#define ASSERT_ERR(condition) \ + do { \ + if (unlikely(!(condition))) \ + cl_dbg_err(cl_hw, ":ASSERT_ERR(" #condition ")\n"); \ + } while (0) + +#define ASSERT_ERR_CHIP(condition) \ + do { \ + if (unlikely(!(condition))) \ + cl_dbg_chip_err(chip, ":ASSERT_ERR(" #condition ")\n"); \ + } while (0)
Again you have macros with magic names cl_hw & chip