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 /lib/utils.c | |
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 'lib/utils.c')
-rw-r--r-- | lib/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils.c b/lib/utils.c index 4f5fd1a..2363c02 100644 --- a/lib/utils.c +++ b/lib/utils.c @@ -52,7 +52,7 @@ int nl_debug = 0; /** @cond SKIP */ -#ifdef NL_DEBUG +#if NL_DEBUG struct nl_dump_params nl_debug_dp = { .dp_type = NL_DUMP_DETAILS, }; |