diff options
author | Justus Winter <justus@gnupg.org> | 2017-06-19 21:20:57 +0200 |
---|---|---|
committer | Justus Winter <justus@gnupg.org> | 2017-08-05 18:42:22 +0200 |
commit | 835b293d35a209d38047126443d41fa7090daa4c (patch) | |
tree | 5bf956895e6030f91cd618fb191b2151f6d25423 /pfinet/glue-include/linux/interrupt.h | |
parent | dc0b5a43224999223a246870912b0f292b1980e9 (diff) | |
download | hurd-835b293d35a209d38047126443d41fa7090daa4c.tar.gz hurd-835b293d35a209d38047126443d41fa7090daa4c.tar.bz2 hurd-835b293d35a209d38047126443d41fa7090daa4c.zip |
Use our own variant of 'assert' and 'assert_perror'.
Our variants print stack traces on failures. This will make locating
errors much easier.
Diffstat (limited to 'pfinet/glue-include/linux/interrupt.h')
-rw-r--r-- | pfinet/glue-include/linux/interrupt.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pfinet/glue-include/linux/interrupt.h b/pfinet/glue-include/linux/interrupt.h index 22312ba4..49eb23db 100644 --- a/pfinet/glue-include/linux/interrupt.h +++ b/pfinet/glue-include/linux/interrupt.h @@ -30,7 +30,7 @@ extern int net_bh_raised; static inline void mark_bh (int bh) { - assert (bh == NET_BH); + assert_backtrace (bh == NET_BH); net_bh_raised = 1; pthread_cond_broadcast (&net_bh_wakeup); } @@ -39,8 +39,8 @@ void net_bh (void); static inline void init_bh (int bh, void (*fn) (void)) { - assert (bh == NET_BH); - assert (fn == &net_bh); + assert_backtrace (bh == NET_BH); + assert_backtrace (fn == &net_bh); } #endif |