build fixes
diff --git a/lib/fuse.c b/lib/fuse.c
index 2776adc..fc2358b 100644
--- a/lib/fuse.c
+++ b/lib/fuse.c
@@ -347,9 +347,11 @@
if(argsize != 0)
memcpy(outbuf + sizeof(struct fuse_out_header), arg, argsize);
- printf(" unique: %i, error: %i (%s), outsize: %i\n", out->unique,
- out->error, strerror(-out->error), outsize);
- fflush(stdout);
+ if((f->flags & FUSE_DEBUG)) {
+ printf(" unique: %i, error: %i (%s), outsize: %i\n", out->unique,
+ out->error, strerror(-out->error), outsize);
+ fflush(stdout);
+ }
res = write(f->fd, outbuf, outsize);
if(res == -1)
@@ -755,9 +757,11 @@
size_t argsize;
struct fuse *f = cmd->f;
- printf("unique: %i, opcode: %i, ino: %li, insize: %i\n", in->unique,
- in->opcode, in->ino, cmd->buflen);
- fflush(stdout);
+ if((f->flags & FUSE_DEBUG)) {
+ printf("unique: %i, opcode: %i, ino: %li, insize: %i\n", in->unique,
+ in->opcode, in->ino, cmd->buflen);
+ fflush(stdout);
+ }
argsize = cmd->buflen - sizeof(struct fuse_in_header);