From bf89b662b7e89c87a33c8ae5196ee553b68d15e0 Mon Sep 17 00:00:00 2001 From: Pascal Obry Date: Fri, 23 Dec 2016 21:09:50 +0100 Subject: [PATCH] Add some debug information. --- cloudfuse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloudfuse.c b/cloudfuse.c index eccb833..ada4841 100644 --- a/cloudfuse.c +++ b/cloudfuse.c @@ -486,7 +486,7 @@ static int cfs_rmdir(const char* path) static int cfs_ftruncate(const char* path, off_t size, struct fuse_file_info* info) { - debugf(DBG_LEVEL_NORM, KBLU "cfs_ftruncate(%s)", path); + debugf(DBG_LEVEL_NORM, KBLU "cfs_ftruncate(%s) size=%lu", path, size); file_buffer_size = size; openfile* of = (openfile*)(uintptr_t)info->fh; if (ftruncate(of->fd, size)) @@ -543,7 +543,7 @@ static int cfs_fsync(const char* path, int idunno, struct fuse_file_info* info) static int cfs_truncate(const char* path, off_t size) { - debugf(DBG_LEVEL_NORM, "cfs_truncate(%s)", path); + debugf(DBG_LEVEL_NORM, "cfs_truncate(%s) size=%lu", path, size); cloudfs_object_truncate(path, size); debugf(DBG_LEVEL_NORM, "exit: cfs_truncate(%s)", path); return 0;