On Sun, Aug 16, 2020 at 05:25:08PM +0200, Andrew Lunn wrote:
> Use the signed JSON helper for printing the TDR amplitude. Otherwise
> negative values, i.e. cable shorts, become very large positive values.
> 
> Signed-off-by: Andrew Lunn <and...@lunn.ch>

Applied, thank you.

Michal

> ---
>  netlink/cable_test.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/netlink/cable_test.c b/netlink/cable_test.c
> index d39b7d8..8a71453 100644
> --- a/netlink/cable_test.c
> +++ b/netlink/cable_test.c
> @@ -354,7 +354,7 @@ static int nl_cable_test_tdr_ntf_attr(struct nlattr 
> *evattr)
>  
>               open_json_object(NULL);
>               print_string(PRINT_ANY, "pair", "%s ", nl_pair2txt(pair));
> -             print_uint(PRINT_ANY, "amplitude", "Amplitude %4d\n", mV);
> +             print_int(PRINT_ANY, "amplitude", "Amplitude %4d\n", mV);
>               close_json_object();
>               break;
>       }
> -- 
> 2.27.0
> 

Attachment: signature.asc
Description: PGP signature

Reply via email to