Changeset 7b616e2 in mainline for uspace/lib/drv/generic/driver.c


Ignore:
Timestamp:
2017-09-27T22:40:09Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d076f16
Parents:
8d6bcc8c
Message:

Name service should communicate using async.h.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/generic/driver.c

    r8d6bcc8c r7b616e2  
    943943        int rc = async_create_port(INTERFACE_DDF_DRIVER, driver_connection_driver,
    944944            NULL, &port);
    945         if (rc != EOK)
     945        if (rc != EOK) {
     946                printf("Error: Failed to create driver port.\n");
    946947                return rc;
     948        }
    947949       
    948950        rc = async_create_port(INTERFACE_DDF_DEVMAN, driver_connection_devman,
    949951            NULL, &port);
    950         if (rc != EOK)
     952        if (rc != EOK) {
     953                printf("Error: Failed to create devman port.\n");
    951954                return rc;
     955        }
    952956       
    953957        async_set_fallback_port_handler(driver_connection_client, NULL);
     
    964968        /* Return success from the task since server has started. */
    965969        rc = task_retval(0);
    966         if (rc != EOK)
     970        if (rc != EOK) {
     971                printf("Error: Failed returning task value.\n");
    967972                return rc;
     973        }
    968974       
    969975        async_manager();
Note: See TracChangeset for help on using the changeset viewer.