diff options
author | Thomas Haller <thaller@redhat.com> | 2024-04-22 06:51:58 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2024-04-22 08:30:03 (GMT) |
commit | e592dd89f1d6a6613b2ca37434ad568da0998b19 (patch) | |
tree | d8cce3d8771f1ea644bef3c6abf7fd4b097c31e8 /include | |
parent | 5873497482022167393f3e193d187340df4acf99 (diff) | |
download | libnl-e592dd89f1d6a6613b2ca37434ad568da0998b19.zip libnl-e592dd89f1d6a6613b2ca37434ad568da0998b19.tar.gz libnl-e592dd89f1d6a6613b2ca37434ad568da0998b19.tar.bz2 |
build: always define NL_DEBUG
Checking conditional defines with #ifdef is error prone because we don't
get a compiler warning when the define wrongly is missing.
Instead, always define it to either 0 or 1.
The benefit is also that now we can use NL_DEBUG in C (not only in the
preprocessor).
Diffstat (limited to 'include')
-rw-r--r-- | include/nl-aux-core/nl-core.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/nl-aux-core/nl-core.h b/include/nl-aux-core/nl-core.h index 5b34bcb..c6bdbeb 100644 --- a/include/nl-aux-core/nl-core.h +++ b/include/nl-aux-core/nl-core.h @@ -5,7 +5,7 @@ #include "base/nl-base-utils.h" -#ifdef NL_DEBUG +#if NL_DEBUG #define NL_DBG(LVL, FMT, ARG...) \ do { \ if (LVL <= nl_debug) { \ |