From: Yu Watanabe Date: Thu, 4 Feb 2021 15:51:39 +0000 (+0900) Subject: network: add nexthop ID in debugging logs X-Git-Tag: v248-rc1~31^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e918b3c12a0fd458796e0ed1736198dfb10f81ca;p=thirdparty%2Fsystemd.git network: add nexthop ID in debugging logs --- diff --git a/src/network/networkd-route.c b/src/network/networkd-route.c index 09ad8464033..7d725d6a646 100644 --- a/src/network/networkd-route.c +++ b/src/network/networkd-route.c @@ -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); } }