]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network/neighbor: fix log message and comment
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 15 Dec 2023 00:21:19 +0000 (09:21 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 20 Dec 2023 18:33:58 +0000 (03:33 +0900)
src/network/networkd-neighbor.c

index eb208c183cda23114e59add1f78debb68c9d1bd8..b9c7875bc4dc94dc0981dcb43936bcdba7d1517d 100644 (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);
                 }