Changeset c1694b6b in mainline for uspace/srv/locsrv/locsrv.c
- Timestamp:
- 2017-12-08T21:03:35Z (6 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/locsrv/locsrv.c
r9eb1ff5 rc1694b6b 47 47 #include <stdlib.h> 48 48 #include <str.h> 49 #include <str_error.h> 49 50 #include <ipc/loc.h> 50 51 #include <assert.h> … … 1529 1530 int rc = async_create_port(INTERFACE_LOC_SUPPLIER, 1530 1531 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)); 1532 1534 return rc; 1535 } 1533 1536 1534 1537 rc = async_create_port(INTERFACE_LOC_CONSUMER, 1535 1538 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)); 1537 1541 return rc; 1542 } 1538 1543 1539 1544 /* Set a handler of incomming connections */ … … 1542 1547 /* Register location service at naming service */ 1543 1548 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)); 1545 1551 return rc; 1552 } 1546 1553 1547 1554 printf("%s: Accepting connections\n", NAME);
Note:
See TracChangeset
for help on using the changeset viewer.