iproute2/lib
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
..
ax25_ntop.c lib: fix ax25.h include for musl 2022-01-15 10:41:13 -08:00
bpf_glue.c bpf_glue: include errno.h 2022-07-25 12:07:16 -07:00
bpf_legacy.c bpf: increase verifier verbosity when in verbose mode 2023-10-27 16:56:55 +00:00
bpf_libbpf.c bpf: increase verifier verbosity when in verbose mode 2023-10-27 16:56:55 +00:00
cg_map.c lib: replace GPL boilerplate with SPDX 2023-01-14 09:00:34 -08:00
color.c lib/color: make local functions static 2018-11-19 11:42:44 -08:00
coverity_model.c scrub out whitespace issues 2016-03-27 10:50:14 -07:00
exec.c netns: switch netns in the child when executing commands 2019-06-20 14:30:41 -07:00
fs.c treewide: fix indentation 2023-06-05 12:49:34 -06:00
inet_proto.c lib: replace GPL boilerplate with SPDX 2023-01-14 09:00:34 -08:00
json_print_math.c build: Fix link errors on some systems 2021-01-18 12:28:47 -08:00
json_print.c bridge: Deduplicate print_range() 2023-12-22 09:57:54 -08:00
json_writer.c json: do not escape single quotes 2022-11-03 11:30:20 -07:00
libgenl.c libgenl: make genl_add_mcast_grp set errno on error 2021-05-17 11:59:37 -07:00
libnetlink.c libnetlink: validate nlmsg header length first 2023-11-09 09:03:57 -08:00
ll_addr.c lib: replace GPL boilerplate with SPDX 2023-01-14 09:00:34 -08:00
ll_map.c lib: replace GPL boilerplate with SPDX 2023-01-14 09:00:34 -08:00
ll_proto.c f_flower: add cfm support 2023-06-23 16:46:29 -07:00
ll_types.c treewide: fix indentation 2023-06-05 12:49:34 -06:00
Makefile lib: add SELinux include and stub functions 2023-08-24 17:34:31 -07:00
mnl_utils.c mnl_utils: sanitize incoming netlink payload size in callbacks 2023-12-08 09:30:11 -08:00
mpls_ntop.c whitespace cleanups 2023-06-05 18:45:45 -07:00
mpls_pton.c whitespace cleanups 2023-06-05 18:45:45 -07:00
names.c lib: replace GPL boilerplate with SPDX 2023-01-14 09:00:34 -08:00
namespace.c lib: replace GPL boilerplate with SPDX 2023-01-14 09:00:34 -08:00
netrom_ntop.c NETROM: Add netrom_ntop implementation. 2021-09-23 20:02:37 -06:00
ppp_proto.c lib: Introduce ppp protocols 2022-07-29 11:22:42 -06:00
rose_ntop.c ROSE: Add rose_ntop implementation. 2021-09-23 20:02:45 -06:00
rt_names.c Read configuration files from /etc and /usr 2023-07-26 09:06:03 -07:00
selinux.c ip vrf: make ipvrf_exec SELinux-aware 2023-08-24 17:34:40 -07:00
utils_math.c build: Fix link errors on some systems 2021-01-18 12:28:47 -08:00
utils.c utils: fix get_integer() logic 2023-08-20 10:41:05 -06:00