summaryrefslogtreecommitdiff
path: root/udev.h
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2003-04-10 20:04:38 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 21:00:23 -0700
commita507a0157240640b4fbf096577a3c2d9729511dd (patch)
tree44e45b39d78ac5519dd0f4b34ac32e64b83a613d /udev.h
parentf0083e3d4eb49e11fd7e37532dc64a6e6f5d4039 (diff)
[PATCH] enabled debugging.
Diffstat (limited to 'udev.h')
-rw-r--r--udev.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/udev.h b/udev.h
index ef7175ea3a..83004bb791 100644
--- a/udev.h
+++ b/udev.h
@@ -26,7 +26,10 @@
#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
@@ -37,5 +40,8 @@
#define MKNOD "/bin/mknod"
+extern int log_message (int level, const char *format, ...);
+
+
#endif