X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdf.c;h=e1d5b5139161b8f5996b7175df6a218b0ec4d41d;hb=ac6580fd886d45a66506fe710a6fea0f48368dcb;hp=688c32229a133e6d62c28c49bf4b03c69d04cb22;hpb=29e3c6c5c3936b75f16811071e77904900edd86e;p=collectd.git diff --git a/src/df.c b/src/df.c index 688c3222..e1d5b513 100644 --- a/src/df.c +++ b/src/df.c @@ -203,9 +203,7 @@ static int df_read(void) { continue; if (STATANYFS(mnt_ptr->dir, &statbuf) < 0) { - char errbuf[1024]; - ERROR(STATANYFS_STR "(%s) failed: %s", mnt_ptr->dir, - sstrerror(errno, errbuf, sizeof(errbuf))); + ERROR(STATANYFS_STR "(%s) failed: %s", mnt_ptr->dir, STRERRNO); continue; }