summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernd Schubert <bernd.schubert@fastmail.fm>2010-06-17 00:01:21 +0200
committerBernd Schubert <bernd.schubert@fastmail.fm>2010-06-17 00:01:21 +0200
commit1530632d4a98515f7b5dab033eac12a4cc2c3aaa (patch)
tree2ef7d74a92fd8b251cce65ee8f15e9d0e10e958d
parenta5344ec6d2fde0299ffaf71310fd02d6f7164980 (diff)
downloadunionfs-fuse-1530632d4a98515f7b5dab033eac12a4cc2c3aaa.tar.gz
Mark filedescriptors as "fd = " in debug output
-rw-r--r--src/unionfs.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/unionfs.c b/src/unionfs.c
index fd4556c..7e0674f 100644
--- a/src/unionfs.c
+++ b/src/unionfs.c
@@ -140,7 +140,7 @@ static int unionfs_create(const char *path, mode_t mode, struct fuse_file_info *
* which flush the data/metadata on close()
*/
static int unionfs_flush(const char *path, struct fuse_file_info *fi) {
- DBG("%"PRIx64"\n", fi->fh);
+ DBG("fd = %"PRIx64"\n", fi->fh);
if (uopt.stats_enabled && strcmp(path, STATS_FILENAME) == 0) RETURN(0);
@@ -163,7 +163,7 @@ static int unionfs_flush(const char *path, struct fuse_file_info *fi) {
* Just a stub. This method is optional and can safely be left unimplemented
*/
static int unionfs_fsync(const char *path, int isdatasync, struct fuse_file_info *fi) {
- DBG("%"PRIx64"\n", fi->fh);
+ DBG("fd = %"PRIx64"\n", fi->fh);
if (uopt.stats_enabled && strcmp(path, STATS_FILENAME) == 0) RETURN(0);
@@ -366,7 +366,7 @@ static int unionfs_open(const char *path, struct fuse_file_info *fi) {
}
static int unionfs_read(const char *path, char *buf, size_t size, off_t offset, struct fuse_file_info *fi) {
- DBG("%"PRIx64"\n", fi->fh);
+ DBG("fd = %"PRIx64"\n", fi->fh);
if (uopt.stats_enabled && strcmp(path, STATS_FILENAME) == 0) {
char out[STATS_SIZE] = "";
@@ -411,7 +411,7 @@ static int unionfs_readlink(const char *path, char *buf, size_t size) {
}
static int unionfs_release(const char *path, struct fuse_file_info *fi) {
- DBG("%s\n", path);
+ DBG("fd = %"PRIx64"\n", fi->fh);
if (uopt.stats_enabled && strcmp(path, STATS_FILENAME) == 0) RETURN(0);
@@ -695,7 +695,7 @@ static int unionfs_utimens(const char *path, const struct timespec ts[2]) {
static int unionfs_write(const char *path, const char *buf, size_t size, off_t offset, struct fuse_file_info *fi) {
(void)path;
- DBG("%"PRIx64"\n", fi->fh);
+ DBG("fd = %"PRIx64"\n", fi->fh);
int res = pwrite(fi->fh, buf, size, offset);
if (res == -1) RETURN(-errno);