net: shell: Print network interface for gptp info

This is useful to know so show what network interface is related
to a given gPTP port.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2020-05-27 16:05:13 +03:00
commit f119cae365

View file

@ -1985,7 +1985,7 @@ static void gptp_print_port_info(const struct shell *shell, int port)
} }
PR("Port id : %d\n", port_ds->port_id.port_number); PR("Port id : %d\n", port_ds->port_id.port_number);
PR("Interface : %p [%d]\n", iface, net_if_get_by_iface(iface));
PR("Clock id : "); PR("Clock id : ");
for (i = 0; i < sizeof(port_ds->port_id.clk_id); i++) { for (i = 0; i < sizeof(port_ds->port_id.clk_id); i++) {
PR("%02x", port_ds->port_id.clk_id[i]); PR("%02x", port_ds->port_id.clk_id[i]);