Commits

gregkh committed a507a01

[PATCH] enabled debugging.

Comments (0)

Files changed (2)

 
 # Set the following to `true' to make a debuggable build.
 # Leave this set to `false' for production use.
-DEBUG = false
+DEBUG = true
 
 
 ROOT =		udev
 
 #ifdef DEBUG
 #include <syslog.h>
-	#define dbg(format, arg...) do { log_message (LOG_DEBUG, __FUNCTION__ ": " format, ## arg); } while (0)
+#define dbg(format, arg...)								\
+	do {										\
+		log_message (LOG_DEBUG , "%s: " format , __FUNCTION__ , ## arg);	\
+	} while (0)
 #else
 	#define dbg(format, arg...) do { } while (0)
 #endif
 #define MKNOD		"/bin/mknod"
 
 
+extern int log_message (int level, const char *format, ...);
+
+
 #endif