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