summaryrefslogtreecommitdiff
path: root/udev.h
diff options
context:
space:
mode:
Diffstat (limited to 'udev.h')
-rw-r--r--udev.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/udev.h b/udev.h
index e9fc2e46eb..33cb89af55 100644
--- a/udev.h
+++ b/udev.h
@@ -34,15 +34,23 @@
#define dbg(format, arg...) do { } while (0)
#endif
+/* Parser needs it's own debugging statement, we usually don't care about this at all */
+#ifdef DEBUG_PARSER
+#define dbg_parse(format, arg...) \
+ do { \
+ log_message (LOG_DEBUG , "%s: " format , __FUNCTION__ , ## arg); \
+ } while (0)
+#else
+ #define dbg_parse(format, arg...) do { } while (0)
+#endif
-/* Lots of constants that should be in a config file sometime */
-
-/* Where udev should create its device nodes, trailing / needed */
-#define UDEV_ROOT "/udev/"
extern int log_message (int level, const char *format, ...)
__attribute__ ((format (printf, 2, 3)));
+
+/* Lots of constants that should be in a config file sometime */
+
#define NAME_SIZE 100
#define OWNER_SIZE 30
#define GROUP_SIZE 30