diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-10-07 15:18:43 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-10-07 15:18:43 +0200 |
commit | 9e150ad50523b8d3bdad3c39ad2b34b05f8ec892 (patch) | |
tree | 21f0645226effbd2fcbb55fc809fb526cd85010e | |
parent | 9cd4c60f96005e61f7fa5f7107701b6ffa93bf78 (diff) | |
download | hda-emu-9e150ad50523b8d3bdad3c39ad2b34b05f8ec892.tar.gz |
Show the function name and line number at BUG_ON()
-rw-r--r-- | include/wrapper.h | 2 |
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) |