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:
parent
2675a11766
commit
f119cae365
1 changed files with 1 additions and 1 deletions
|
@ -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]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue