lib: Make BUG_ON() use fp_err()

So that when we change fp_err() to an assertion, BUG_ON() is changed as
well.
This commit is contained in:
Bastien Nocera 2018-09-06 14:42:33 +02:00
parent de5b4e7dcb
commit fc66919e1f

View file

@ -37,7 +37,7 @@
if (condition) { \
char *s; \
s = g_strconcat ("BUG: (", #condition, ")", NULL); \
g_warning ("%s: %s() %s:%d", s, G_STRFUNC, __FILE__, __LINE__); \
fp_err ("%s: %s() %s:%d", s, G_STRFUNC, __FILE__, __LINE__); \
g_free (s); \
} G_STMT_END
#define BUG() BUG_ON(1)