]> git.tuebingen.mpg.de Git - dss.git/blobdiff - df.c
Fix --config-file for relative paths.
[dss.git] / df.c
diff --git a/df.c b/df.c
index fe4a7f3b793fadefc0696f8205f9356e279d66e8..7fb319e0ba866746d7e223a4114b0f4f986dc17e 100644 (file)
--- a/df.c
+++ b/df.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
 #include <sys/statvfs.h>
 #include <stdio.h>
 #include <assert.h>
@@ -7,13 +8,13 @@
 
 #include "gcc-compat.h"
 #include "log.h"
-#include "error.h"
-#include "string.h"
+#include "err.h"
+#include "str.h"
 #include "df.h"
 
 int get_disk_space(const char *path, struct disk_space *result)
 {
-       /* using floats allows to not care about integer overflows */
+       /* With floats we don't need to care about integer overflows. */
        float total_blocks, available_blocks, blocksize;
        float total_inodes, available_inodes;
 
@@ -37,7 +38,7 @@ int get_disk_space(const char *path, struct disk_space *result)
 
 void log_disk_space(struct disk_space *ds)
 {
-       DSS_INFO_LOG("free: %uM/%uM (%u%%), %u%% inodes unused\n",
+       DSS_INFO_LOG(("free: %uM/%uM (%u%%), %u%% inodes unused\n",
                ds->free_mb, ds->total_mb, ds->percent_free,
-               ds->percent_free_inodes);
+               ds->percent_free_inodes));
 }