diff --git a/src/irq.c b/src/irq.c
index 6c30e95a752bb4583ca6ce466279062cdfb7e094..d44ac0b3a53373c4f994398cfa05000b7091f0ff 100644 (file)
--- a/src/irq.c
+++ b/src/irq.c
if (temp == NULL)
{
fprintf (stderr, "irq plugin: Cannot allocate more memory.\n");
- syslog (LOG_ERR, "irq plugin: Cannot allocate more memory.");
+ ERROR ("irq plugin: Cannot allocate more memory.");
return (1);
}
irq_list = temp;
{
fprintf (stderr, "irq plugin: Irq value is not a "
"number: `%s'\n", value);
- syslog (LOG_ERR, "irq plugin: Irq value is not a "
+ ERROR ("irq plugin: Irq value is not a "
"number: `%s'", value);
return (1);
}
if ((fh = fopen ("/proc/interrupts", "r")) == NULL)
{
- syslog (LOG_WARNING, "irq plugin: fopen (/proc/interrupts): %s",
+ WARNING ("irq plugin: fopen (/proc/interrupts): %s",
strerror (errno));
return (-1);
}