summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPino Toscano <toscano.pino@tiscali.it>2013-03-23 17:31:35 +0100
committerPino Toscano <toscano.pino@tiscali.it>2013-03-23 17:31:35 +0100
commit757ebdabb42c5ed4ace22357eb3d2610df136b6b (patch)
tree9b5121a2de50f9b2af5977b6ed8a2e5a125c7470
parent2aa0eeb9752411ab599f537c7624ac25d6ffaf2c (diff)
Trace FUSE_OP_CALL calls to debug
* src/fuse_i.h (FUSE_OP_CALL): Output function names to debug.
-rw-r--r--src/fuse_i.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fuse_i.h b/src/fuse_i.h
index 1bc683011..49c4c0639 100644
--- a/src/fuse_i.h
+++ b/src/fuse_i.h
@@ -44,7 +44,10 @@ struct fuse {
extern struct fuse *libfuse_fuse;
#define FUSE_OP_HAVE(a) (libfuse_fuse->op.ops.a != NULL)
-#define FUSE_OP_CALL(a,b...) (libfuse_fuse->op.ops.a(b))
+#define FUSE_OP_CALL(a,b...) ({ \
+ DEBUG("tracing", "FUSE_OP_CALL(%s)\n", #a); \
+ libfuse_fuse->op.ops.a(b); \
+ })
#define NN_INFO(dir) ((void *) &(dir)->nn->info.info25)