mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-19 19:35:21 +00:00
ip-route: Prevent some other double spaces in output
Print spaces only after text. CC: Phil Sutter <phil@nwl.cc> Signed-off-by: Timothy Redaelli <tredaelli@redhat.com> Acked-by: Phil Sutter <phil@nwl.cc>
This commit is contained in:
parent
058d28b44c
commit
5551ed44d3
@ -677,6 +677,7 @@ int print_route(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
|
|||||||
fprintf(fp, "%s", ll_index_to_name(nh->rtnh_ifindex));
|
fprintf(fp, "%s", ll_index_to_name(nh->rtnh_ifindex));
|
||||||
if (nh->rtnh_hops != 1)
|
if (nh->rtnh_hops != 1)
|
||||||
fprintf(fp, "(ttl>%d)", nh->rtnh_hops);
|
fprintf(fp, "(ttl>%d)", nh->rtnh_hops);
|
||||||
|
fprintf(fp, " ");
|
||||||
} else {
|
} else {
|
||||||
fprintf(fp, "dev %s ", ll_index_to_name(nh->rtnh_ifindex));
|
fprintf(fp, "dev %s ", ll_index_to_name(nh->rtnh_ifindex));
|
||||||
if (r->rtm_family != AF_MPLS)
|
if (r->rtm_family != AF_MPLS)
|
||||||
|
Loading…
Reference in New Issue
Block a user