summaryrefslogtreecommitdiffstats
path: root/init/ueventd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'init/ueventd.cpp')
-rw-r--r--init/ueventd.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/init/ueventd.cpp b/init/ueventd.cpp
index 86621cd..d56b91a 100644
--- a/init/ueventd.cpp
+++ b/init/ueventd.cpp
@@ -70,12 +70,12 @@ int ueventd_main(int argc, char **argv)
open_devnull_stdio();
klog_init();
-#if LOG_UEVENTS
- /* Ensure we're at a logging level that will show the events */
- if (klog_get_level() < KLOG_INFO_LEVEL) {
- klog_set_level(KLOG_INFO_LEVEL);
+ if (LOG_UEVENTS) {
+ /* Ensure we're at a logging level that will show the events */
+ if (klog_get_level() < KLOG_INFO_LEVEL) {
+ klog_set_level(KLOG_INFO_LEVEL);
+ }
}
-#endif
union selinux_callback cb;
cb.func_log = log_callback;