]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: show route metric in debug log
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 18 Apr 2021 16:23:54 +0000 (01:23 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 21 Apr 2021 04:42:45 +0000 (13:42 +0900)
src/network/networkd-route.c

index a74541a6c95e8d56ce63cab98963b74054ef427c..9ed30d69ed6ceaa3d46cdfd5b87295e7d77eab00 100644 (file)
@@ -628,11 +628,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, nexthop: %"PRIu32,
+                               "%s route: dst: %s, src: %s, gw: %s, prefsrc: %s, scope: %s, table: %s, proto: %s, type: %s, nexthop: %"PRIu32", priority: %"PRIu32,
                                str, strna(dst), strna(src), strna(gw), strna(prefsrc),
                                strna(scope), strna(table), strna(proto),
                                strna(route_type_to_string(route->type)),
-                               route->nexthop_id);
+                               route->nexthop_id, route->priority);
         }
 }