Changeset c1694b6b in mainline for uspace/srv/locsrv/locsrv.c


Ignore:
Timestamp:
2017-12-08T21:03:35Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f77c1c9
Parents:
9eb1ff5
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-07 18:20:13)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-08 21:03:35)
Message:

Add str_error() in numerous places.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/locsrv/locsrv.c

    r9eb1ff5 rc1694b6b  
    4747#include <stdlib.h>
    4848#include <str.h>
     49#include <str_error.h>
    4950#include <ipc/loc.h>
    5051#include <assert.h>
     
    15291530        int rc = async_create_port(INTERFACE_LOC_SUPPLIER,
    15301531            loc_connection_supplier, NULL, &port);
    1531         if (rc != EOK)
     1532        if (rc != EOK) {
     1533                printf("%s: Error while creating supplier port: %s\n", NAME, str_error(rc));
    15321534                return rc;
     1535        }
    15331536       
    15341537        rc = async_create_port(INTERFACE_LOC_CONSUMER,
    15351538            loc_connection_consumer, NULL, &port);
    1536         if (rc != EOK)
     1539        if (rc != EOK) {
     1540                printf("%s: Error while creating consumer port: %s\n", NAME, str_error(rc));
    15371541                return rc;
     1542        }
    15381543       
    15391544        /* Set a handler of incomming connections */
     
    15421547        /* Register location service at naming service */
    15431548        rc = service_register(SERVICE_LOC);
    1544         if (rc != EOK)
     1549        if (rc != EOK) {
     1550                printf("%s: Error while registering service: %s\n", NAME, str_error(rc));
    15451551                return rc;
     1552        }
    15461553       
    15471554        printf("%s: Accepting connections\n", NAME);
Note: See TracChangeset for help on using the changeset viewer.