fix
authorMiklos Szeredi <miklos@szeredi.hu>
Fri, 24 Feb 2006 16:21:58 +0000 (16:21 +0000)
committerMiklos Szeredi <miklos@szeredi.hu>
Fri, 24 Feb 2006 16:21:58 +0000 (16:21 +0000)
include/fuse.h
lib/fuse.c

index a7182acdbd3c76dc465e12c2e0a9e31730d83f8b..b6ecaef0af80f4c53473d16adee3fc88614d3cd3 100644 (file)
@@ -12,9 +12,9 @@
 /* This file defines the library interface of FUSE */
 
 /* IMPORTANT: you should define FUSE_USE_VERSION before including this
-   header.  To use the newest API define it to 25 (recommended for any
-   new application), to use the old API define it to 21 (default) or
-   22, to use the even older 1.X API define it to 11. */
+   header.  To use the newest API define it to 26 (recommended for any
+   new application), to use the old API define it to 21 (default) 22
+   or 25, to use the even older 1.X API define it to 11. */
 
 #ifndef FUSE_USE_VERSION
 #define FUSE_USE_VERSION 21
index 0ce05a66f836e288bad67d129e900767048c2def..ac6a2d5f4ad4586965bb23e6944d9b38879c3d7c 100644 (file)
@@ -1232,8 +1232,9 @@ static void fuse_read(fuse_req_t req, fuse_ino_t ino, size_t size, off_t off,
     path = get_path(f, ino);
     if (path != NULL) {
         if (f->conf.debug) {
-            printf("READ[%llu] %u bytes from %llu\n",
-                   (unsigned long long) fi->fh, size, off);
+            printf("READ[%llu] %lu bytes from %llu\n",
+                   (unsigned long long) fi->fh, (unsigned long) size,
+                   (unsigned long long) off);
             fflush(stdout);
         }
 
@@ -1271,9 +1272,9 @@ static void fuse_write(fuse_req_t req, fuse_ino_t ino, const char *buf,
     path = get_path(f, ino);
     if (path != NULL) {
         if (f->conf.debug) {
-            printf("WRITE%s[%llu] %u bytes to %llu\n",
+            printf("WRITE%s[%llu] %lu bytes to %llu\n",
                    fi->writepage ? "PAGE" : "", (unsigned long long) fi->fh,
-                   size, off);
+                   (unsigned long) size, (unsigned long long) off);
             fflush(stdout);
         }