]> git.proxmox.com Git - mirror_lxcfs.git/blobdiff - bindings.h
enable debug option
[mirror_lxcfs.git] / bindings.h
index c2951044d1d92fed647a6a67e2b3ec7536e9b5fb..c663287b15638f53a593bfe55823f0ef2b2df255 100644 (file)
@@ -1,21 +1,12 @@
+#ifndef __LXCFS_BINDINGS_H
+#define __LXCFS_BINDINGS_H
+
+#include "macro.h"
+
 /* directory under which we mount the controllers - /run/lxcfs/controllers */
 #define BASEDIR RUNTIME_PATH "/lxcfs/controllers"
 #define ROOTDIR RUNTIME_PATH "/lxcfs/root"
 
-#define lxcfs_debug_stream(stream, format, ...)                                \
-       do {                                                                   \
-               fprintf(stderr, "%s: %d: %s: " format, __FILE__, __LINE__,     \
-                       __func__, __VA_ARGS__);                                \
-       } while (false)
-
-#define lxcfs_error(format, ...) lxcfs_debug_stream(stderr, format, __VA_ARGS__)
-
-#ifdef DEBUG
-#define lxcfs_debug(format, ...) lxcfs_error(format, __VA_ARGS__)
-#else
-#define lxcfs_debug(format, ...)
-#endif /* DEBUG */
-
 extern int cg_write(const char *path, const char *buf, size_t size, off_t offset,
             struct fuse_file_info *fi);
 extern int cg_mkdir(const char *path, mode_t mode);
@@ -41,3 +32,5 @@ extern int proc_open(const char *path, struct fuse_file_info *fi);
 extern int proc_read(const char *path, char *buf, size_t size, off_t offset,
                struct fuse_file_info *fi);
 extern int proc_access(const char *path, int mask);
+
+#endif /* __LXCFS_BINDINGS_H */