Changes in uspace/srv/devman/main.c [f9b2cb4c:c1694b6b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/main.c
rf9b2cb4c rc1694b6b 42 42 #include <stdio.h> 43 43 #include <errno.h> 44 #include <str_error.h> 44 45 #include <stdbool.h> 45 46 #include <fibril_synch.h> … … 318 319 int rc = log_init(NAME); 319 320 if (rc != EOK) { 320 printf("%s: Error initializing logging subsystem .\n", NAME);321 printf("%s: Error initializing logging subsystem: %s\n", NAME, str_error(rc)); 321 322 return rc; 322 323 } … … 329 330 rc = async_create_port(INTERFACE_DDF_DRIVER, 330 331 devman_connection_driver, NULL, &port); 331 if (rc != EOK) 332 return rc; 332 if (rc != EOK) { 333 printf("%s: Error creating DDF driver port: %s\n", NAME, str_error(rc)); 334 return rc; 335 } 333 336 334 337 rc = async_create_port(INTERFACE_DDF_CLIENT, 335 338 devman_connection_client, NULL, &port); 336 if (rc != EOK) 337 return rc; 339 if (rc != EOK) { 340 printf("%s: Error creating DDF client port: %s\n", NAME, str_error(rc)); 341 return rc; 342 } 338 343 339 344 rc = async_create_port(INTERFACE_DEVMAN_DEVICE, 340 345 devman_connection_device, NULL, &port); 341 if (rc != EOK) 342 return rc; 346 if (rc != EOK) { 347 printf("%s: Error creating devman device port: %s\n", NAME, str_error(rc)); 348 return rc; 349 } 343 350 344 351 rc = async_create_port(INTERFACE_DEVMAN_PARENT, 345 352 devman_connection_parent, NULL, &port); 346 if (rc != EOK) 347 return rc; 353 if (rc != EOK) { 354 printf("%s: Error creating devman parent port: %s\n", NAME, str_error(rc)); 355 return rc; 356 } 348 357 349 358 async_set_fallback_port_handler(devman_forward, NULL); … … 357 366 rc = service_register(SERVICE_DEVMAN); 358 367 if (rc != EOK) { 359 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering as a service .");368 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering as a service: %s", str_error(rc)); 360 369 return rc; 361 370 }
Note:
See TracChangeset
for help on using the changeset viewer.