Changeset cc574511 in mainline for uspace/srv/devman/main.c
- Timestamp:
- 2011-08-16T12:37:58Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 16dc887
- Parents:
- 86ffa27f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/main.c
r86ffa27f rcc574511 362 362 { 363 363 devman_handle_t handle = IPC_GET_ARG1(*call); 364 category_id_t cat_id; 365 int rc; 364 366 365 367 /* Get class name. */ 366 368 char *class_name; 367 intrc = async_data_write_accept((void **) &class_name, true,369 rc = async_data_write_accept((void **) &class_name, true, 368 370 0, 0, 0, 0); 369 371 if (rc != EOK) { … … 383 385 /* Register the device's class alias with location service. */ 384 386 loc_register_class_dev(class_info); 387 388 rc = loc_category_get_id(class_name, &cat_id, IPC_FLAG_BLOCKING); 389 if (rc == EOK) { 390 loc_service_add_to_cat(fun->service_id, cat_id); 391 } else { 392 log_msg(LVL_ERROR, "Failed adding function `%s' to category " 393 "`%s'.", fun->pathname, class_name); 394 } 385 395 386 396 log_msg(LVL_NOTE, "Function `%s' added to class `%s' as `%s'.", … … 760 770 printf(NAME ": HelenOS Device Manager\n"); 761 771 762 if (log_init(NAME, LVL_ ERROR) != EOK) {772 if (log_init(NAME, LVL_WARN) != EOK) { 763 773 printf(NAME ": Error initializing logging subsystem.\n"); 764 774 return -1;
Note:
See TracChangeset
for help on using the changeset viewer.