OSDN Git Service

More concrete error message on memory allocation failure.
authorrelan <relan@users.noreply.github.com>
Sun, 27 Nov 2011 09:43:53 +0000 (09:43 +0000)
committerrelan <relan@users.noreply.github.com>
Mon, 24 Aug 2015 05:26:13 +0000 (08:26 +0300)
libexfat/mount.c

index c4dfb2c..254a3e6 100644 (file)
@@ -133,7 +133,7 @@ int exfat_mount(struct exfat* ef, const char* spec, const char* options)
        if (ef->sb == NULL)
        {
                close(ef->fd);
-               exfat_error("memory allocation failed");
+               exfat_error("failed to allocate memory for the super block");
                return -ENOMEM;
        }
        memset(ef->sb, 0, sizeof(struct exfat_super_block));