OSDN Git Service

Fixed format strings warnings.
authorresver <resver@60bc1c72-a15a-11de-b98f-4500b42dc123>
Tue, 22 Dec 2009 21:49:56 +0000 (21:49 +0000)
committerresver <resver@60bc1c72-a15a-11de-b98f-4500b42dc123>
Tue, 22 Dec 2009 21:49:56 +0000 (21:49 +0000)
git-svn-id: http://exfat.googlecode.com/svn/trunk@90 60bc1c72-a15a-11de-b98f-4500b42dc123

fuse/main.c

index 4fafd70..8f723e1 100644 (file)
@@ -14,6 +14,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <exfat.h>
+#include <inttypes.h>
 
 #define exfat_debug(format, ...)
 
@@ -54,7 +55,7 @@ static int fuse_exfat_truncate(const char* path, off_t size)
        struct exfat_node* node;
        int rc;
 
-       exfat_debug("[fuse_exfat_truncate] %s, %llu", path, size);
+       exfat_debug("[fuse_exfat_truncate] %s, %"PRIu64, path, (uint64_t) size);
 
        rc = exfat_lookup(&ef, &node, path);
        if (rc != 0)
@@ -99,9 +100,9 @@ static int fuse_exfat_readdir(const char* path, void* buffer,
        while ((node = exfat_readdir(&ef, &it)))
        {
                exfat_get_name(node, name, EXFAT_NAME_MAX);
-               exfat_debug("[fuse_exfat_readdir] %s: %s, %llu bytes, cluster %u",
+               exfat_debug("[fuse_exfat_readdir] %s: %s, %"PRIu64" bytes, cluster %u",
                                name, IS_CONTIGUOUS(*node) ? "contiguous" : "fragmented",
-                               node->size, node->start_cluster);
+                               (uint64_t) node->size, node->start_cluster);
                filler(buffer, name, NULL, 0);
                exfat_put_node(&ef, node);
        }