Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3beec1d4 authored by Lars Ellenberg's avatar Lars Ellenberg Committed by Philipp Reisner
Browse files

drbd: tag a few error messages with "assert failed"



If those messages ever get logged, clearly state that they are
actually failed ASSERTS, so our regression tests can pick them up
from the logs more easily.

Signed-off-by: default avatarPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: default avatarLars Ellenberg <lars.ellenberg@linbit.com>
parent aaa8e2b3
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -116,7 +116,7 @@ struct drbd_conf;

#define ERR_IF(exp) if (({						\
	int _b = (exp) != 0;						\
	if (_b) dev_err(DEV, "%s: (%s) in %s:%d\n",	\
	if (_b) dev_err(DEV, "ASSERT FAILED: %s: (%s) in %s:%d\n",	\
			__func__, #exp, __FILE__, __LINE__);		\
	_b;								\
	}))