[PATCH V2 1/2] lib: sbi: add some macros to detect BUG at runtime

Andreas Schwab schwab at linux-m68k.org
Wed Sep 15 02:27:13 PDT 2021


On Sep 15 2021, Xiang W wrote:

> +#define BUG_ON(cond) do { \
> +	if (!(cond))	\
> +		BUG(); \

Isn't that backwards?

Andreas.

-- 
Andreas Schwab, schwab at linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



More information about the opensbi mailing list