Changeset 8a9a41e in mainline for uspace/app/inet/inet.c
- Timestamp:
- 2021-10-24T08:28:43Z (3 years ago)
- Children:
- f628215
- Parents:
- 2ce943a (diff), cd981f2a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Erik Kučák <35500848+Riko196@…> (2021-10-24 08:28:43)
- git-committer:
- GitHub <noreply@…> (2021-10-24 08:28:43)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/inet/inet.c
r2ce943a r8a9a41e 1 1 /* 2 * Copyright (c) 20 13Jiri Svoboda2 * Copyright (c) 2021 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 37 37 #include <errno.h> 38 38 #include <inet/addr.h> 39 #include <inet/eth_addr.h> 39 40 #include <inet/inetcfg.h> 40 41 #include <io/table.h> … … 340 341 inet_link_info_t linfo; 341 342 table_t *table = NULL; 343 eth_addr_str_t saddr; 342 344 343 345 size_t count; … … 368 370 } 369 371 370 table_printf(table, "%02x:%02x:%02x:%02x:%02x:%02x\t" 371 "%s\t" "%zu\n", 372 linfo.mac_addr[0], linfo.mac_addr[1], 373 linfo.mac_addr[2], linfo.mac_addr[3], 374 linfo.mac_addr[4], linfo.mac_addr[5], 375 linfo.name, linfo.def_mtu); 372 eth_addr_format(&linfo.mac_addr, &saddr); 373 table_printf(table, "%s\t %s\t %zu\n", saddr.str, linfo.name, 374 linfo.def_mtu); 376 375 377 376 free(linfo.name);
Note:
See TracChangeset
for help on using the changeset viewer.