libnetlink: turn rtnetlink error answers into debug msgs
authorFelix Fietkau <nbd@nbd.name>
Fri, 27 Aug 2021 10:36:44 +0000 (12:36 +0200)
committerFelix Fietkau <nbd@nbd.name>
Fri, 27 Aug 2021 10:36:45 +0000 (12:36 +0200)
They should not be logged by default

Signed-off-by: Felix Fietkau <nbd@nbd.name>
libnetlink.c

index 5c5523da2613a80712b19a6e4321a06732c0f2fd..ece1e17d4cecf42a02308670bb4c0df1e50b3604 100644 (file)
@@ -226,7 +226,7 @@ int rtnl_dump_filter(struct rtnl_handle *rth,
                                        ERROR("ERROR truncated\n");
                                } else {
                                        errno = -err->error;
-                                       INFO("RTNETLINK answers");
+                                       LOG("RTNETLINK answers");
                                }
                                return -1;
                        }
@@ -351,7 +351,7 @@ int rtnl_talk(struct rtnl_handle *rtnl, struct nlmsghdr *n, pid_t peer,
                                                               h->nlmsg_len);
                                                return 0;
                                        }
-                                       ERROR("RTNETLINK answers");
+                                       LOG("RTNETLINK answers");
                                }
                                return -1;
                        }