netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH iproute2 0/6] devlink: Replace devlink print helper functions with common library functions
@ 2020-01-23 10:32 Ron Diskin
  2020-01-23 10:32 ` [PATCH iproute2 1/6] json_print: Introduce print_#type_name_value Ron Diskin
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Ron Diskin @ 2020-01-23 10:32 UTC (permalink / raw)
  To: Stephen Hemminger, David Ahern
  Cc: Jiri Pirko, Moshe Shemesh, netdev, Ron Diskin

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(-)

-- 
2.19.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-01-27 13:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-23 10:32 [PATCH iproute2 0/6] devlink: Replace devlink print helper functions with common library functions Ron Diskin
2020-01-23 10:32 ` [PATCH iproute2 1/6] json_print: Introduce print_#type_name_value Ron Diskin
2020-01-27 13:52   ` Stephen Hemminger
2020-01-23 10:32 ` [PATCH iproute2 2/6] json_print: Add new json object function not as array item Ron Diskin
2020-01-23 10:32 ` [PATCH iproute2 3/6] devlink: Replace json prints by common library functions Ron Diskin
2020-01-23 10:32 ` [PATCH iproute2 4/6] devlink: Replace pr_out_str wrapper function with common function Ron Diskin
2020-01-23 10:32 ` [PATCH iproute2 5/6] devlink: Replace pr_#type_value wrapper functions with common functions Ron Diskin
2020-01-23 10:32 ` [PATCH iproute2 6/6] devlink: Replace pr_out_bool/uint() wrappers with common print functions Ron Diskin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).