39 lines
1.3 KiB
Diff
39 lines
1.3 KiB
Diff
|
From 3b5a323346f95622d4b97d37a645b468d32a852c Mon Sep 17 00:00:00 2001
|
||
|
From: Christian Brauner <cbrauner@suse.de>
|
||
|
Date: Tue, 30 Aug 2016 10:26:44 +0200
|
||
|
Subject: [PATCH 23/24] bindings: fix debug macro
|
||
|
|
||
|
Signed-off-by: Christian Brauner <cbrauner@suse.de>
|
||
|
---
|
||
|
bindings.h | 7 ++++++-
|
||
|
1 file changed, 6 insertions(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/bindings.h b/bindings.h
|
||
|
index c295104..04d728c 100644
|
||
|
--- a/bindings.h
|
||
|
+++ b/bindings.h
|
||
|
@@ -1,10 +1,13 @@
|
||
|
+#ifndef __LXCFS_BINDINGS_H
|
||
|
+#define __LXCFS_BINDINGS_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__, \
|
||
|
+ fprintf(stream, "%s: %d: %s: " format, __FILE__, __LINE__, \
|
||
|
__func__, __VA_ARGS__); \
|
||
|
} while (false)
|
||
|
|
||
|
@@ -41,3 +44,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 */
|
||
|
--
|
||
|
2.9.3
|
||
|
|