mirror of
https://github.com/systemd/systemd
synced 2024-10-14 20:17:52 +00:00
[PATCH] enabled debugging.
This commit is contained in:
parent
f0083e3d4e
commit
a507a01572
2
Makefile
2
Makefile
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
# Set the following to `true' to make a debuggable build.
|
# Set the following to `true' to make a debuggable build.
|
||||||
# Leave this set to `false' for production use.
|
# Leave this set to `false' for production use.
|
||||||
DEBUG = false
|
DEBUG = true
|
||||||
|
|
||||||
|
|
||||||
ROOT = udev
|
ROOT = udev
|
||||||
|
|
8
udev.h
8
udev.h
|
@ -26,7 +26,10 @@
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
#include <syslog.h>
|
#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
|
#else
|
||||||
#define dbg(format, arg...) do { } while (0)
|
#define dbg(format, arg...) do { } while (0)
|
||||||
#endif
|
#endif
|
||||||
|
@ -37,5 +40,8 @@
|
||||||
#define MKNOD "/bin/mknod"
|
#define MKNOD "/bin/mknod"
|
||||||
|
|
||||||
|
|
||||||
|
extern int log_message (int level, const char *format, ...);
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue