]> git.ipfire.org Git - thirdparty/kmod.git/commit
Always define and use ENABLE_LOGGING
authorEmil Velikov <emil.l.velikov@gmail.com>
Tue, 15 Oct 2024 19:36:50 +0000 (20:36 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Thu, 17 Oct 2024 14:27:15 +0000 (09:27 -0500)
commit75a02302a78d8908561bb7cf3d4de3ddfd486f4f
tree02d6de70d00b37e5017e5edf872b63685f1b311b
parent5326afc9b91c4b58e018a95832183297fc850741
Always define and use ENABLE_LOGGING

Convert the "if defined FOO" pre-processor checks for compiler ones "if
(FOO == 1)".

This makes things easier to reason with and ensures both code-paths are
build-tested. In case, the option is disabled DCE will kick in (assuming
you're not force disabling all optimisations) and remove the respective
code.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/173
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
configure.ac
libkmod/libkmod-elf.c
libkmod/libkmod-internal.h
meson.build