diff options
author | Thomas Graf <tgraf@suug.ch> | 2012-11-15 23:42:34 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2012-11-15 23:42:34 (GMT) |
commit | 23c4ef67c735813fd41f66f6722b996d1ad7314a (patch) | |
tree | add54d965c816cb57d8c08ef172c7a61b007b03b /include | |
parent | 235aa7ff17e12ca7a76dcfd77abfe143c2ce4dea (diff) | |
download | libnl-23c4ef67c735813fd41f66f6722b996d1ad7314a.zip libnl-23c4ef67c735813fd41f66f6722b996d1ad7314a.tar.gz libnl-23c4ef67c735813fd41f66f6722b996d1ad7314a.tar.bz2 |
Use NL_DBG() instead of printing warnings and errors to stderr
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Diffstat (limited to 'include')
-rw-r--r-- | include/netlink-local.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/netlink-local.h b/include/netlink-local.h index 1f580c6..2bfae3e 100644 --- a/include/netlink-local.h +++ b/include/netlink-local.h @@ -86,16 +86,16 @@ struct trans_list { fprintf(stderr, "DBG<" #LVL ">: " FMT, ##ARG); \ } while (0) -#define BUG() \ - do { \ - fprintf(stderr, "BUG: %s:%d\n", \ - __FILE__, __LINE__); \ - assert(0); \ +#define BUG() \ + do { \ + NL_DBG(1, "BUG: %s:%d\n", \ + __FILE__, __LINE__); \ + assert(0); \ } while (0) #define APPBUG(msg) \ do { \ - fprintf(stderr, "APPLICATION BUG: %s:%d:%s: %s\n", \ + NL_DBG(1, "APPLICATION BUG: %s:%d:%s: %s\n", \ __FILE__, __LINE__, __PRETTY_FUNCTION__, msg); \ assert(0); \ } while(0) |