Changeset eb083ad in mainline for uspace/app/inet/inet.c


Ignore:
Timestamp:
2012-05-17T21:09:06Z (13 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
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.
Message:

merge mainline changes

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/app/inet/inet.c

    ra8b8086 reb083ad  
    2727 */
    2828
    29 /** @addtogroup inetcfg
     29/** @addtogroup inet
    3030 * @{
    3131 */
     
    3535 */
    3636
    37 #include <async.h>
    3837#include <errno.h>
    3938#include <inet/inetcfg.h>
     
    4443#include <sys/types.h>
    4544
    46 #define NAME "inetcfg"
     45#define NAME "inet"
    4746
    4847static void print_syntax(void)
     
    188187        rc = inetcfg_addr_create_static(aobj_name, &naddr, link_id, &addr_id);
    189188        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));
    192191                return EIO;
    193192        }
     
    346345
    347346        printf("Configured addresses:\n");
    348 
     347        if (count > 0)
     348                printf("    [Addr/Width] [Link-Name] [Addr-Name] [Def-MTU]\n");
    349349        ainfo.name = linfo.name = astr = NULL;
    350350
     
    416416
    417417        printf("Static routes:\n");
     418        if (count > 0)
     419                printf("    [Dest/Width] [Router-Addr] [Route-Name]\n");
    418420
    419421        srinfo.name = dest_str = router_str = NULL;
Note: See TracChangeset for help on using the changeset viewer.