]> granicus.if.org Git - strace/commit
rtnl_link: print pad field in the struct ifla_port_vsi decoder
authorEugene Syromyatnikov <evgsyr@gmail.com>
Sat, 19 Oct 2019 08:44:36 +0000 (10:44 +0200)
committerEugene Syromyatnikov <evgsyr@gmail.com>
Sat, 19 Oct 2019 16:01:47 +0000 (18:01 +0200)
commit0f99f89cd90992148e426f288c9bf7df994e8943
treee0ea7bb11601f0bf39f45ef34cf0364f4dc7602a
parent55c18c05b8e5fc1f96907b437bfb666fee9ecdb1
rtnl_link: print pad field in the struct ifla_port_vsi decoder

And steamline the flow a bit.

* rtnl_link.c (decode_ifla_port_vsi): Factor the printing code out of
the conditional statement, add pad field printing.
* tests/nlattr_ifla_port.c: Add check for the pad field printing.
rtnl_link.c
tests/nlattr_ifla_port.c