Add some debug information.

This commit is contained in:
Pascal Obry
2016-12-23 21:09:50 +01:00
parent 342d55ff82
commit bf89b662b7
+2 -2
View File
@@ -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;