]> git.proxmox.com Git - mirror_iproute2.git/commit
devlink: Fix binary values print
authorAya Levin <ayal@mellanox.com>
Wed, 10 Jul 2019 11:03:20 +0000 (14:03 +0300)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 15 Jul 2019 20:50:55 +0000 (13:50 -0700)
commit1d05cca2fd70a5bc8a9f4e978aa5629dbc99a973
tree418dc25c195b9d4996d95e1b920fcff1049c99de
parentb4d97ef57fd4b7669971ed209065a72d115dffc2
devlink: Fix binary values print

Fix function pr_out_binary_value() to start printing the binary buffer
from offset 0 instead of offset 1. Remove redundant new line at the
beginning of the output

Example:
With patch:
 mlx5e_txqsq:
   05 00 00 00 05 00 00 00 01 00 00 00 00 00 00 00
   00 00 00 00 00 00 00 00 8e 6e 3a 13 07 00 00 00
   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
   c0
Without patch
  mlx5e_txqsq:

  00 00 00 05 00 00 00 01 00 00 00 00 00 00 00 00
  00 00 00 00 00 00 00 8e 6e 3a 13 07 00 00 00 00
  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 c0

Fixes: 844a61764c6f ("devlink: Add helper functions for name and value separately")
Signed-off-by: Aya Levin <ayal@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
devlink/devlink.c