Changeset 6a0f1309 in mainline for uspace/drv/nic/virtio-net/virtio-net.c
- Timestamp:
- 2018-06-24T09:07:19Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8b3cb67
- Parents:
- 4810acf
- git-author:
- Jakub Jermar <jakub@…> (2018-06-24 09:07:12)
- git-committer:
- Jakub Jermar <jakub@…> (2018-06-24 09:07:19)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/virtio-net/virtio-net.c
r4810acf r6a0f1309 38 38 #include <ops/nic.h> 39 39 #include <pci_dev_iface.h> 40 #include <nic/nic.h> 40 41 41 42 #include <nic.h> … … 336 337 */ 337 338 nic_address_t nic_addr; 338 for (unsigned i = 0; i < 6; i++)339 for (unsigned i = 0; i < ETH_ADDR; i++) 339 340 nic_addr.address[i] = pio_read_8(&netcfg->mac[i]); 340 341 rc = nic_report_address(nic, &nic_addr); … … 342 343 goto fail; 343 344 344 ddf_msg(LVL_NOTE, "MAC address: %02x:%02x:%02x:%02x:%02x:%02x",345 ddf_msg(LVL_NOTE, "MAC address: " PRIMAC, 345 346 nic_addr.address[0], nic_addr.address[1], nic_addr.address[2], 346 347 nic_addr.address[3], nic_addr.address[4], nic_addr.address[5]);
Note:
See TracChangeset
for help on using the changeset viewer.