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
..
2022-01-15 10:41:13 -08:00
2022-07-25 12:07:16 -07:00
2018-11-19 11:42:44 -08:00
2016-03-27 10:50:14 -07:00
2023-06-05 12:49:34 -06:00
2023-12-22 09:57:54 -08:00
2023-06-23 16:46:29 -07:00
2023-06-05 12:49:34 -06:00
2023-06-05 18:45:45 -07:00
2023-06-05 18:45:45 -07:00
2023-01-14 09:00:34 -08:00
2022-07-29 11:22:42 -06:00
2023-08-20 10:41:05 -06:00