Code

Replace all syslog-calls with one of the new logging-macros.
[collectd.git] / src / serial.c
index 8f8e433b8f494a5f3eee387ca594657b802b6a07..0cfa382309b0ba8655638f74f3cd5daeaee3fb7e 100644 (file)
@@ -80,7 +80,7 @@ static int serial_read (void)
        if ((fh = fopen ("/proc/tty/driver/serial", "r")) == NULL &&
                (fh = fopen ("/proc/tty/driver/ttyS", "r")) == NULL)
        {
-               syslog (LOG_WARNING, "serial: fopen: %s", strerror (errno));
+               WARNING ("serial: fopen: %s", strerror (errno));
                return (-1);
        }