]> git.proxmox.com Git - mirror_iproute2.git/commit
devlink: Add helper for left justification print
authorAya Levin <ayal@mellanox.com>
Wed, 2 Oct 2019 14:35:14 +0000 (17:35 +0300)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 9 Oct 2019 03:22:13 +0000 (20:22 -0700)
commit56b725a442ccd128077755ab2a97d06909bd1227
treee8ea1d33b69cf37617d0ac799ca3dd48231aa60f
parente047ca988f1858a6b91bda837b45a7c783a33295
devlink: Add helper for left justification print

Introduce a helper function which wraps code that adds a left hand side
space separator unless it follows a newline.

Fixes: e3d0f0c0e3d8 ("devlink: add option to generate JSON output")
Signed-off-by: Aya Levin <ayal@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
devlink/devlink.c