X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fzfs_arc.c;h=d1ee111bb637f70db05bf8fd5b3186bdb4995c87;hb=d67f84e24b2520b5b1ccbbf1ff9d1f397e075417;hp=6c66fb1390d9afe8493aaa9fb992cabd7bf4ed2c;hpb=7111bb6df7628edce3a8e538b386fbe27633a191;p=collectd.git diff --git a/src/zfs_arc.c b/src/zfs_arc.c index 6c66fb13..d1ee111b 100644 --- a/src/zfs_arc.c +++ b/src/zfs_arc.c @@ -207,9 +207,8 @@ static int za_read(void) { fh = fopen(ZOL_ARCSTATS_FILE, "r"); if (fh == NULL) { - char errbuf[1024]; ERROR("zfs_arc plugin: Opening \"%s\" failed: %s", ZOL_ARCSTATS_FILE, - sstrerror(errno, errbuf, sizeof(errbuf))); + STRERRNO); return -1; }