Changes in uspace/app/inet/inet.c [5a6cc679:3e6bca8] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/inet/inet.c
r5a6cc679 r3e6bca8 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> … … 43 44 #include <stdlib.h> 44 45 #include <stdint.h> 46 #include <str.h> 45 47 #include <str_error.h> 46 48 … … 339 341 inet_link_info_t linfo; 340 342 table_t *table = NULL; 343 eth_addr_str_t saddr; 341 344 342 345 size_t count; … … 367 370 } 368 371 369 table_printf(table, "%02x:%02x:%02x:%02x:%02x:%02x\t" 370 "%s\t" "%zu\n", 371 linfo.mac_addr[0], linfo.mac_addr[1], 372 linfo.mac_addr[2], linfo.mac_addr[3], 373 linfo.mac_addr[4], linfo.mac_addr[5], 374 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); 375 375 376 376 free(linfo.name);
Note:
See TracChangeset
for help on using the changeset viewer.