OSDN Git Service

On failure to open device print mode we attempted to open it in.
authorresver <resver@60bc1c72-a15a-11de-b98f-4500b42dc123>
Sun, 27 Nov 2011 09:49:37 +0000 (09:49 +0000)
committerresver <resver@60bc1c72-a15a-11de-b98f-4500b42dc123>
Sun, 27 Nov 2011 09:49:37 +0000 (09:49 +0000)
git-svn-id: http://exfat.googlecode.com/svn/trunk@235 60bc1c72-a15a-11de-b98f-4500b42dc123

libexfat/io.c

index 3d63fa9..25988f0 100644 (file)
@@ -39,7 +39,8 @@ int exfat_open(const char* spec, int ro)
        fd = open(spec, ro ? O_RDONLY : O_RDWR);
        if (fd < 0)
        {
-               exfat_error("failed to open `%s'", spec);
+               exfat_error("failed to open `%s' in read-%s mode", spec,
+                               ro ? "only" : "write");
                return -1;
        }
        if (fstat(fd, &stbuf) != 0)