Changes in uspace/srv/net/ethip/ethip_nic.c [e82b37e:b4edc96] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/ethip/ethip_nic.c
re82b37e rb4edc96 1 1 /* 2 * Copyright (c) 202 4Jiri Svoboda2 * Copyright (c) 2021 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 234 234 uint8_t *addr; 235 235 size_t size; 236 eth_addr_str_t saddr;237 236 errno_t rc; 238 237 … … 243 242 } 244 243 245 eth_addr_decode(addr, &nic->mac_addr);246 eth_addr_format(&nic->mac_addr, &saddr);247 248 244 log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_nic_addr_changed(): " 249 "new addr=%s", saddr.str); 245 "new addr=%02x:%02x:%02x:%02x:%02x:%02x", 246 addr[0], addr[1], addr[2], addr[3], addr[4], addr[5]); 247 248 memcpy(&nic->mac_addr, addr, sizeof(nic->mac_addr)); 250 249 251 250 rc = iplink_ev_change_addr(&nic->iplink, &nic->mac_addr);
Note:
See TracChangeset
for help on using the changeset viewer.