aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2013-10-07 15:18:43 +0200
committerTakashi Iwai <tiwai@suse.de>2013-10-07 15:18:43 +0200
commit9e150ad50523b8d3bdad3c39ad2b34b05f8ec892 (patch)
tree21f0645226effbd2fcbb55fc809fb526cd85010e
parent9cd4c60f96005e61f7fa5f7107701b6ffa93bf78 (diff)
downloadhda-emu-9e150ad50523b8d3bdad3c39ad2b34b05f8ec892.tar.gz
Show the function name and line number at BUG_ON()
-rw-r--r--include/wrapper.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/wrapper.h b/include/wrapper.h
index 6058ff8..952fae0 100644
--- a/include/wrapper.h
+++ b/include/wrapper.h
@@ -162,7 +162,7 @@ static inline bool time_before(unsigned long a, unsigned long b)
{ return 0; }
#define BUG_ON(x) do { \
- if (x) { fprintf(stderr, "ERROR!\n"); } \
+ if (x) { fprintf(stderr, "ERROR! (%s:%d)\n", __func__, __LINE__); } \
} while (0)
#define BUILD_BUG_ON(x) do {} while (0)