X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=blobdiff_plain;f=df.c;h=003becccddebe5231289afb63c5c527c550357b1;hp=fe4a7f3b793fadefc0696f8205f9356e279d66e8;hb=f38f86c1d4695a7016d5002e979c4f68ed12fb69;hpb=e511a86fc64abdc457ae21415363edd193163b4f diff --git a/df.c b/df.c index fe4a7f3..003becc 100644 --- a/df.c +++ b/df.c @@ -1,3 +1,8 @@ +/* + * Copyright (C) 2008-2010 Andre Noll + * + * Licensed under the GPL v2. For licencing details see COPYING. + */ #include #include #include @@ -7,8 +12,8 @@ #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) @@ -37,7 +42,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)); }