1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

[PATCH] enabled debugging.

This commit is contained in:
greg@kroah.com 2003-04-10 20:04:38 -07:00 committed by Greg KH
parent f0083e3d4e
commit a507a01572
2 changed files with 8 additions and 2 deletions

View File

@ -18,7 +18,7 @@
# Set the following to `true' to make a debuggable build.
# Leave this set to `false' for production use.
DEBUG = false
DEBUG = true
ROOT = udev

8
udev.h
View File

@ -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