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] fix SEGV in libsysfs/dlist.c
[elogind.git]
/
libsysfs
/
sysfs.h
diff --git
a/libsysfs/sysfs.h
b/libsysfs/sysfs.h
index 4ea4919351782c1ddc4818934737477c903efc0d..1b800ddcd2311104697370c5d03093c8200b1b43 100644
(file)
--- a/
libsysfs/sysfs.h
+++ b/
libsysfs/sysfs.h
@@
-31,10
+31,11
@@
#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>
+#include
"../logging.h"
#define dprintf(format, arg...) \
do { \
log_message (LOG_DEBUG , "%s: " format , __FUNCTION__ , ## arg); \
#define dprintf(format, arg...) \
do { \
log_message (LOG_DEBUG , "%s: " format , __FUNCTION__ , ## arg); \
@@
-43,8
+44,4
@@
#define dprintf(format, arg...) do { } while (0)
#endif
#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_ */