chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] Revert previous dev_d.c change, it's not what is causing HAL problems.
[elogind.git]
/
libsysfs
/
sysfs.h
diff --git
a/libsysfs/sysfs.h
b/libsysfs/sysfs.h
index 4ea4919351782c1ddc4818934737477c903efc0d..7ac6efc678e804fca81ec1072284c58d4670b8d5 100644
(file)
--- a/
libsysfs/sysfs.h
+++ b/
libsysfs/sysfs.h
@@
-31,20
+31,14
@@
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
+#include "dlist.h"
/* Debugging */
#ifdef DEBUG
/* Debugging */
#ifdef DEBUG
-#include <syslog.h>
-#define dprintf(format, arg...) \
- do { \
- log_message (LOG_DEBUG , "%s: " format , __FUNCTION__ , ## arg); \
- } while (0)
+#include "../logging.h"
+#define dprintf(format, arg...) dbg(format, ##arg)
#else
#define dprintf(format, arg...) do { } while (0)
#endif
#else
#define dprintf(format, arg...) do { } while (0)
#endif
-extern int log_message (int level, const char *format, ...)
- __attribute__ ((format (printf, 2, 3)));
-
-
#endif /* _SYSFS_H_ */
#endif /* _SYSFS_H_ */