Changeset eb083ad in mainline for uspace/app/inet/inet.c
- Timestamp:
- 2012-05-17T21:09:06Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8fde078
- Parents:
- a8b8086 (diff), 3e67ab1 (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. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/inet/inet.c
ra8b8086 reb083ad 27 27 */ 28 28 29 /** @addtogroup inet cfg29 /** @addtogroup inet 30 30 * @{ 31 31 */ … … 35 35 */ 36 36 37 #include <async.h>38 37 #include <errno.h> 39 38 #include <inet/inetcfg.h> … … 44 43 #include <sys/types.h> 45 44 46 #define NAME "inet cfg"45 #define NAME "inet" 47 46 48 47 static void print_syntax(void) … … 188 187 rc = inetcfg_addr_create_static(aobj_name, &naddr, link_id, &addr_id); 189 188 if (rc != EOK) { 190 printf(NAME ": Failed creating static address '%s' (% d)\n",191 aobj_name, rc);189 printf(NAME ": Failed creating static address '%s' (%s)\n", 190 aobj_name, str_error(rc)); 192 191 return EIO; 193 192 } … … 346 345 347 346 printf("Configured addresses:\n"); 348 347 if (count > 0) 348 printf(" [Addr/Width] [Link-Name] [Addr-Name] [Def-MTU]\n"); 349 349 ainfo.name = linfo.name = astr = NULL; 350 350 … … 416 416 417 417 printf("Static routes:\n"); 418 if (count > 0) 419 printf(" [Dest/Width] [Router-Addr] [Route-Name]\n"); 418 420 419 421 srinfo.name = dest_str = router_str = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.