]> git.tuebingen.mpg.de Git - osl.git/blobdiff - util.c
Replace underscores with dashes in fsck command line options.
[osl.git] / util.c
diff --git a/util.c b/util.c
index 64d83c84f3292ffffa87af4f5129c891f4e3796e..db80854203728d50081c98fe128e6c5d6c22b3ae 100644 (file)
--- a/util.c
+++ b/util.c
@@ -61,8 +61,10 @@ int write_all(int fd, const char *buf, size_t *len)
        *len = 0;
        while (*len < total) {
                int ret = __write(fd, buf + *len, total - *len);
-               if (ret < 0)
+               if (ret < 0) {
+                       ERROR_LOG("write error: %s\n", strerror(errno));
                        return ret;
+               }
                *len += ret;
        }
        return 1;