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