]> git.itanic.dy.fi Git - rrdd/commitdiff
network_parser: Use pr_* debug macros instead of printf
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Wed, 1 Mar 2023 16:08:44 +0000 (18:08 +0200)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Wed, 1 Mar 2023 16:08:44 +0000 (18:08 +0200)
Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
network_parser.c

index 7e2b95e8bf0ab3cd4d8f90e13932207399638726..89941b46dfa3a4cd08b63cf8afafb6b520a6b860 100644 (file)
@@ -200,7 +200,7 @@ static int network_multi_parser(char ***rrd_data, const char **parser_data,
 
        data->fd = socket(AF_INET, SOCK_STREAM, 0);
        if (data->fd == -1) {
-               printf("Failed to create socket: %m\n");
+               pr_err("Failed to create socket: %m\n");
                return -1;
        }