Changeset 132ab5d1 in mainline for uspace/app/inet/inet.c


Ignore:
Timestamp:
2018-01-30T03:20:45Z (8 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5a6cc679
Parents:
8bfb163 (diff), 6a5d05b (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 commit '6a5d05bd2551e64111bea4f9332dd7448c26ce84' into forwardport

Separate return value from error code in gen_irq_code*().

File:
1 edited

Legend:

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

    r8bfb163 r132ab5d1  
    8989        rc = loc_service_get_id(link_name, &link_id, 0);
    9090        if (rc != EOK) {
    91                 printf(NAME ": Service '%s' not found (%d).\n", link_name, rc);
     91                printf(NAME ": Service '%s' not found: %s.\n", link_name, str_error(rc));
    9292                return ENOENT;
    9393        }
     
    135135        rc = loc_service_get_id(link_name, &link_id, 0);
    136136        if (rc != EOK) {
    137                 printf(NAME ": Service '%s' not found (%d).\n", link_name, rc);
     137                printf(NAME ": Service '%s' not found: %s.\n", link_name,
     138                    str_error(rc));
    138139                return ENOENT;
    139140        }
     
    141142        rc = inetcfg_addr_get_id(aobj_name, link_id, &addr_id);
    142143        if (rc != EOK) {
    143                 printf(NAME ": Address '%s' not found (%d).\n", aobj_name, rc);
     144                printf(NAME ": Address '%s' not found: %s.\n", aobj_name,
     145                    str_error(rc));
    144146                return ENOENT;
    145147        }
     
    147149        rc = inetcfg_addr_delete(addr_id);
    148150        if (rc != EOK) {
    149                 printf(NAME ": Failed deleting address '%s' (%d)\n", aobj_name,
    150                     rc);
     151                printf(NAME ": Failed deleting address '%s': %s\n", aobj_name,
     152                    str_error(rc));
    151153                return EIO;
    152154        }
     
    197199        rc = inetcfg_sroute_create(route_name, &dest, &router, &sroute_id);
    198200        if (rc != EOK) {
    199                 printf(NAME ": Failed creating static route '%s' (%d)\n",
    200                     route_name, rc);
     201                printf(NAME ": Failed creating static route '%s': %s\n",
     202                    route_name, str_error(rc));
    201203                return EIO;
    202204        }
     
    227229        rc = inetcfg_sroute_get_id(route_name, &sroute_id);
    228230        if (rc != EOK) {
    229                 printf(NAME ": Static route '%s' not found (%d).\n",
    230                     route_name, rc);
     231                printf(NAME ": Static route '%s' not found: %s.\n",
     232                    route_name, str_error(rc));
    231233                return ENOENT;
    232234        }
     
    234236        rc = inetcfg_sroute_delete(sroute_id);
    235237        if (rc != EOK) {
    236                 printf(NAME ": Failed deleting static route '%s' (%d)\n",
    237                     route_name, rc);
     238                printf(NAME ": Failed deleting static route '%s': %s\n",
     239                    route_name, str_error(rc));
    238240                return EIO;
    239241        }
     
    486488        rc = inetcfg_init();
    487489        if (rc != EOK) {
    488                 printf(NAME ": Failed connecting to internet service (%d).\n",
    489                     rc);
     490                printf(NAME ": Failed connecting to internet service: %s.\n",
     491                    str_error(rc));
    490492                return 1;
    491493        }
Note: See TracChangeset for help on using the changeset viewer.