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