X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Firq.c;h=f8cf37cab60938684027e2ac5400ffd028a2c7f1;hb=c7c01bfff595b6e61a3722f163cb4c0312df8d7a;hp=d54041595f1693e7409732e448a2bf1f2988374f;hpb=217ec252adf547f2dd048489e2498bc31e8f70db;p=collectd.git diff --git a/src/irq.c b/src/irq.c index d5404159..f8cf37ca 100644 --- a/src/irq.c +++ b/src/irq.c @@ -90,9 +90,7 @@ static int irq_read(void) { */ fh = fopen("/proc/interrupts", "r"); if (fh == NULL) { - char errbuf[1024]; - ERROR("irq plugin: fopen (/proc/interrupts): %s", - sstrerror(errno, errbuf, sizeof(errbuf))); + ERROR("irq plugin: fopen (/proc/interrupts): %s", STRERRNO); return -1; }