diff options
Diffstat (limited to 'udev.h')
-rw-r--r-- | udev.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 |