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