Skip to content

Commit

Permalink
sys/shell: lwIP: make use of netif_get_name()
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Aug 25, 2021
1 parent 3d00c68 commit 4a00361
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sys/shell/commands/sc_lwip_netif.c
Original file line number Diff line number Diff line change
@@ -43,9 +43,10 @@ static void _netif_list_ipv6(struct netif *netif, int addr_index) {

static void _netif_list(struct netif *netif) {
int i;
char name[8];
struct netdev *dev = netif->state;
printf("Iface %c%c%u ", netif->name[0], netif->name[1], netif->num);
printf("HWaddr: ");
netif_get_name((netif_t *)netif, name);
printf("Iface %s HWaddr: ", name);
for (i = 0; i < netif->hwaddr_len; i++) {
printf("%02x", netif->hwaddr[i]);
if ((i+1) < netif->hwaddr_len) {

0 comments on commit 4a00361

Please sign in to comment.