Changes in uspace/srv/locsrv/locsrv.c [adb1ae9:c1694b6b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/locsrv/locsrv.c
radb1ae9 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> … … 1347 1348 categ_dir_add_cat(&cdir, cat); 1348 1349 1350 cat = category_new("console"); 1351 categ_dir_add_cat(&cdir, cat); 1352 1349 1353 cat = category_new("clock"); 1350 1354 categ_dir_add_cat(&cdir, cat); … … 1526 1530 int rc = async_create_port(INTERFACE_LOC_SUPPLIER, 1527 1531 loc_connection_supplier, NULL, &port); 1528 if (rc != EOK) 1532 if (rc != EOK) { 1533 printf("%s: Error while creating supplier port: %s\n", NAME, str_error(rc)); 1529 1534 return rc; 1535 } 1530 1536 1531 1537 rc = async_create_port(INTERFACE_LOC_CONSUMER, 1532 1538 loc_connection_consumer, NULL, &port); 1533 if (rc != EOK) 1539 if (rc != EOK) { 1540 printf("%s: Error while creating consumer port: %s\n", NAME, str_error(rc)); 1534 1541 return rc; 1542 } 1535 1543 1536 1544 /* Set a handler of incomming connections */ … … 1539 1547 /* Register location service at naming service */ 1540 1548 rc = service_register(SERVICE_LOC); 1541 if (rc != EOK) 1549 if (rc != EOK) { 1550 printf("%s: Error while registering service: %s\n", NAME, str_error(rc)); 1542 1551 return rc; 1552 } 1543 1553 1544 1554 printf("%s: Accepting connections\n", NAME);
Note:
See TracChangeset
for help on using the changeset viewer.