]> git.ipfire.org Git - thirdparty/iproute2.git/commit
json_print: Introduce print_#type_name_value
authorRon Diskin <rondi@mellanox.com>
Thu, 23 Jan 2020 10:32:26 +0000 (12:32 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 27 Jan 2020 13:43:54 +0000 (05:43 -0800)
commit31ca29b2bec4020929686eb240fa1abd963819a4
treec10801662c79c5b24c2bbecd555059d56012a82f
parent919046d326bacd3d5fd76801cc71294fe2cfcbc7
json_print: Introduce print_#type_name_value

Until now print_#type functions supported printing constant names and
unknown (variable) values only.
Add functions to allow printing when the name is also sent to the
function as a variable.

Signed-off-by: Ron Diskin <rondi@mellanox.com>
Reviewed-by: Moshe Shemesh <moshe@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
include/json_print.h
lib/json_print.c