mbox series

[iproute2,0/6] devlink: Replace devlink print helper functions with common library functions

Message ID 1579775551-22659-1-git-send-email-rondi@mellanox.com
Headers show
Series devlink: Replace devlink print helper functions with common library functions | expand

Message

Ron Diskin Jan. 23, 2020, 10:32 a.m. UTC
This patchset converts devlink prints (json and non-json) to use the
same common json library as the rest of iproute2.
Patches 1-2 add necessary functionality to json_print library.
Patch 3 removes the direct calls to json_writer. 
Patches 4-6 use the new functionality, replacing different pr_out_#type
wrapper.

Ron Diskin (6):
  json_print: Introduce print_#type_name_value
  json_print: Add new json object function not as array item
  devlink: Replace json prints by common library functions
  devlink: Replace pr_out_str wrapper function with common function
  devlink: Replace pr_#type_value wrapper functions with common
    functions
  devlink: Replace pr_out_bool/uint() wrappers with common print
    functions

 devlink/devlink.c    | 610 +++++++++++++++++++++----------------------
 include/json_print.h |   9 +
 lib/json_print.c     |  43 ++-
 3 files changed, 345 insertions(+), 317 deletions(-)