]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: add nexthop ID in debugging logs
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 4 Feb 2021 15:51:39 +0000 (00:51 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 19 Feb 2021 13:42:39 +0000 (22:42 +0900)
src/network/networkd-route.c

index 09ad84640330d66f77a70b56b91c481846432c08..7d725d6a646d88fa2f837e4d461be33b592b2c53 100644 (file)
@@ -647,10 +647,11 @@ static void log_route_debug(const Route *route, const char *str, const Link *lin
                 (void) route_protocol_full_to_string_alloc(route->protocol, &proto);
 
                 log_link_debug(link,
-                               "%s route: dst: %s, src: %s, gw: %s, prefsrc: %s, scope: %s, table: %s, proto: %s, type: %s",
+                               "%s route: dst: %s, src: %s, gw: %s, prefsrc: %s, scope: %s, table: %s, proto: %s, type: %s, nexthop: %"PRIu32,
                                str, strna(dst), strna(src), strna(gw), strna(prefsrc),
                                strna(scope), strna(table), strna(proto),
-                               strna(route_type_to_string(route->type)));
+                               strna(route_type_to_string(route->type)),
+                               route->nexthop_id);
         }
 }