X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=libsysfs%2Fsysfs.h;h=1e58e8abb4a7c52930a87a8905cd875815523a80;hp=3186c37a16fb612f811348bd833ace981882a615;hb=993a633ab848487b8e546f66087595e2dc5aa4af;hpb=c8ba857171bd09a0019d3182fe989c6cf06d98d2 diff --git a/libsysfs/sysfs.h b/libsysfs/sysfs.h index 3186c37a1..1e58e8abb 100644 --- a/libsysfs/sysfs.h +++ b/libsysfs/sysfs.h @@ -27,30 +27,21 @@ #include #include #include +#include #include #include #include #include /* external library functions */ -extern int lstat(const char *file_name, struct stat *buf); -extern int readlink(const char *path, char *buf, size_t bufsize); -extern int getpagesize(void); extern int isascii(int c); /* Debugging */ #ifdef DEBUG -#include -#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 -extern int log_message (int level, const char *format, ...) - __attribute__ ((format (printf, 2, 3))); - - #endif /* _SYSFS_H_ */