agendafs

A filesystem for your calendar.

git clone git://mccd.space/agendafs
commit c1f9df1499a1e706b47cce91d7b642ddb61c1b7c
parent 602b01162fa34d838c7e23b56b21feda18935f17
Author: Marc Coquand <marc@coquand.email>
Date:   Tue, 29 Jul 2025 10:21:09 +0200

Log fixes

Diffstat:
Mmain.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/main.c b/main.c
@@ -369,7 +369,7 @@ cleanup_return:
 static int
 fuse_removexattr(const char *path, const char *attribute)
 {
-	LOG("REMOVEXATTR '%s' '%s'", path, header);
+	LOG("REMOVEXATTR '%s' '%s'", path, attribute);
 	memory_region *mreg = create_region();
 	int status = -EINVAL;
 	pthread_mutex_lock(&entries_mutex);
@@ -406,8 +406,8 @@ static int
 fuse_setxattr(const char *path, const char *attribute, const char *value,
 	      size_t s, int flags)
 {
-	LOG("SETXATTR '%s' '%s' '%zu' '%s' '%d'", path, header, s,
-	    new_attributes, flags);
+	LOG("SETXATTR '%s' '%s' '%zu' '%s' '%d'", path, attribute, s, attribute,
+	    flags);
 	memory_region *mreg = create_region();
 	pthread_mutex_lock(&entries_mutex);
 	int status = 0;
@@ -532,7 +532,7 @@ cleanup_return_2:
 static int
 fuse_getxattr(const char *path, const char *attribute, char *buf, size_t s)
 {
-	LOG("GETXATTR '%s' '%s' '%zu'\n", path, header, s);
+	LOG("GETXATTR '%s' '%s' '%zu'\n", path, attribute, s);
 	pthread_mutex_lock(&entries_mutex);
 	memory_region *mreg = create_region();
 	int status = 0;