diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2008-04-09 13:23:36 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2008-04-09 13:23:36 +0000 |
commit | bd9bf9c8cee576c4b93702c788b34b1fe0372580 (patch) | |
tree | f76607f1bab43a3845a54e2263a5f25f6df3bdb6 /lib/fuse_lowlevel.c | |
parent | ac6d6502f147773c7c203432bc70bd6d3d87b9e9 (diff) | |
download | android_external_fuse-bd9bf9c8cee576c4b93702c788b34b1fe0372580.tar.gz android_external_fuse-bd9bf9c8cee576c4b93702c788b34b1fe0372580.tar.bz2 android_external_fuse-bd9bf9c8cee576c4b93702c788b34b1fe0372580.zip |
Update warning message for missing newline at end of fuse.conf
Diffstat (limited to 'lib/fuse_lowlevel.c')
-rw-r--r-- | lib/fuse_lowlevel.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/lib/fuse_lowlevel.c b/lib/fuse_lowlevel.c index d4941b4..bae6199 100644 --- a/lib/fuse_lowlevel.c +++ b/lib/fuse_lowlevel.c @@ -167,11 +167,18 @@ static int send_reply_iov(fuse_req_t req, int error, struct iovec *iov, iov[0].iov_len = sizeof(struct fuse_out_header); out.len = iov_length(iov, count); - if (req->f->debug) - fprintf(stderr, - " unique: %llu, error: %i (%s), outsize: %i\n", - (unsigned long long) out.unique, out.error, - strerror(-out.error), out.len); + if (req->f->debug) { + if (out.error) { + fprintf(stderr, + " unique: %llu, error: %i (%s), outsize: %i\n", + (unsigned long long) out.unique, out.error, + strerror(-out.error), out.len); + } else { + fprintf(stderr, + " unique: %llu, success, outsize: %i\n", + (unsigned long long) out.unique, out.len); + } + } res = fuse_chan_send(req->ch, iov, count); free_req(req); |