]> git.ipfire.org Git - thirdparty/iproute2.git/commit
use print_{,h}hu instead of print_uint when format specifier is %{,h}hu
authorDavide Caratti <dcaratti@redhat.com>
Thu, 7 Feb 2019 10:51:27 +0000 (11:51 +0100)
committerDavid Ahern <dsahern@gmail.com>
Mon, 11 Feb 2019 03:00:59 +0000 (19:00 -0800)
commitca81444303e3dc2cdcb65606b7e8e28fc3ba2a08
treeff5bb89f8200bb21a983665d325951304210e511
parent05bc89e95ef6887ccb0ec143171760352112c7a6
use print_{,h}hu instead of print_uint when format specifier is %{,h}hu

in this way, a useless cast to unsigned int is avoided in bpf_print_ops()
and print_tunnel().

Tested with:
 # ./tdc.py -c bpf

Suggested-by: Stephen Hemminger <stephen@networkplumber.org>
Cc: Andrea Claudi <aclaudi@redhat.com>
Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
ip/ipl2tp.c
lib/bpf.c