iproute2/bridge
Benjamin Poirier 1d73bfc8ab bridge: Deduplicate print_range()
The two implementations are now identical so keep only one instance and
move it to json_print.c where there are already a few other specialized
printing functions.

The string that's formatted in the "end" buffer is only needed when
outputting a range so move the snprintf() call within the condition.

The second argument's purpose is better conveyed by calling it "end" rather
than "id" so rename it.

Reviewed-by: Petr Machata <petrm@nvidia.com>
Tested-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Benjamin Poirier <bpoirier@nvidia.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
2023-12-22 09:57:54 -08:00
..
.gitignore Add bridge command 2012-08-01 15:23:49 -07:00
br_common.h bridge: make print_vlan_info static 2023-06-02 09:33:34 -07:00
bridge.c bridge: vni: Fix vni filter help strings 2023-12-22 09:54:23 -08:00
fdb.c bridge: fdb: support match on [no]router flag in flush command 2023-10-20 09:43:05 -06:00
link.c bridge: Add backup nexthop ID support 2023-08-04 09:09:43 -06:00
Makefile bridge: vxlan device vnifilter support 2022-05-08 09:50:32 -06:00
mdb.c bridge: mdb: Add get support 2023-11-06 10:08:50 -07:00
monitor.c bridge: use SPDX 2023-01-14 09:00:34 -08:00
vlan.c bridge: Deduplicate print_range() 2023-12-22 09:57:54 -08:00
vni.c bridge: Deduplicate print_range() 2023-12-22 09:57:54 -08:00