Commit fc66919e authored by Bastien Nocera's avatar Bastien Nocera

lib: Make BUG_ON() use fp_err()

So that when we change fp_err() to an assertion, BUG_ON() is changed as
well.
parent de5b4e7d
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment