X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Firq.c;h=f8cf37cab60938684027e2ac5400ffd028a2c7f1;hb=0b7cd83a5e6bac068ea83a88a5ddcfb07c09fbec;hp=d54041595f1693e7409732e448a2bf1f2988374f;hpb=5dbb7471b0a7ca7506f56f4c6dbaf58e790c6b7c;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; }