chiark / gitweb /
[PATCH] rename LOG to USE_LOG in all places
[elogind.git] / udevtest.c
index 4b94442608641b677e07beebf5a878dcdbf55308..084fde07064a2fe2b39cbdc942ca2d61bde65d04 100644 (file)
@@ -36,7 +36,7 @@
 #include "logging.h"
 
 
-#ifdef LOG
+#ifdef USE_LOG
 void log_message (int level, const char *format, ...)
 {
        va_list args;
@@ -94,7 +94,7 @@ int main(int argc, char *argv[], char *envp[])
        udev_init_device(&udev, devpath, subsystem);
 
        /* skip subsystems without "dev", but handle net devices */
-       if (udev.type != 'n' && subsystem_expect_no_dev(udev.subsystem)) {
+       if (udev.type != NET && subsystem_expect_no_dev(udev.subsystem)) {
                info("don't care about '%s' devices", udev.subsystem);
                return 2;
        }