network/neighbor: fix log message and comment

This commit is contained in:
Yu Watanabe
2023-12-21 03:33:58 +09:00
parent bc9e592c4f
commit 47ac844ee6
+2 -2
View File
@@ -648,12 +648,12 @@ int network_drop_invalid_neighbors(Network *network) {
dup = set_remove(neighbors, neighbor);
if (dup) {
log_warning("%s: Duplicated neighbor settings for %s is specified at line %u and %u, "
"dropping the address setting specified at line %u.",
"dropping the neighbor setting specified at line %u.",
dup->section->filename,
IN_ADDR_TO_STRING(neighbor->family, &neighbor->in_addr),
neighbor->section->line,
dup->section->line, dup->section->line);
/* neighbor_free() will drop the address from neighbors_by_section. */
/* neighbor_free() will drop the neighbor from neighbors_by_section. */
neighbor_free(dup);
}