diff options
author | Thomas Graf <tgraf@suug.ch> | 2013-04-02 09:39:30 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2013-04-02 09:39:30 (GMT) |
commit | ff567100d6190c9014514f90de522281007c90db (patch) | |
tree | 668ef3bf3a7b290fd63ec959c872e25a0593fa95 /lib/utils.c | |
parent | f9241d57fe1fd13aa9ae09d86fe8605451213ef2 (diff) | |
download | libnl-ff567100d6190c9014514f90de522281007c90db.zip libnl-ff567100d6190c9014514f90de522281007c90db.tar.gz libnl-ff567100d6190c9014514f90de522281007c90db.tar.bz2 |
nl: Print file:line:func in debugging messages and provide --disable-debug to disable debugging
Compiling libnl with --disable-debug will result in the ignorance
of the 'NLDBG' environment variable.
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Diffstat (limited to 'lib/utils.c')
-rw-r--r-- | lib/utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/utils.c b/lib/utils.c index 3bfa604..3012fea 100644 --- a/lib/utils.c +++ b/lib/utils.c @@ -49,6 +49,7 @@ int nl_debug = 0; /** @cond SKIP */ +#ifdef NL_DEBUG struct nl_dump_params nl_debug_dp = { .dp_type = NL_DUMP_DETAILS, }; @@ -65,6 +66,7 @@ static void __init nl_debug_init(void) nl_debug_dp.dp_fd = stderr; } +#endif int __nl_read_num_str_file(const char *path, int (*cb)(long, const char *)) { |