Changeset 3b47db6 in mainline
- Timestamp:
- 2018-01-04T20:50:53Z (7 years ago)
- Children:
- 58e4d85
- Parents:
- c81d4f1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:47:53)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:50:53)
- Location:
- uspace
- Files:
-
- 49 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/scli.c
rc81d4f1 r3b47db6 120 120 121 121 cli_finit(&usr); 122 return EXIT_RC(ret);122 return ret; 123 123 } -
uspace/app/corecfg/corecfg.c
rc81d4f1 r3b47db6 77 77 return corecfg_print(); 78 78 else if (str_cmp(argv[1], "enable") == 0) 79 return EXIT_RC(corecfg_set_enable(true));79 return corecfg_set_enable(true); 80 80 else if (str_cmp(argv[1], "disable") == 0) 81 return EXIT_RC(corecfg_set_enable(false));81 return corecfg_set_enable(false); 82 82 else { 83 83 printf("%s: Unknown command '%s'.\n", NAME, argv[1]); -
uspace/app/date/date.c
rc81d4f1 r3b47db6 191 191 free(svc_name); 192 192 free(svc_ids); 193 return EXIT_RC(rc);193 return rc; 194 194 } 195 195 -
uspace/app/dnscfg/dnscfg.c
rc81d4f1 r3b47db6 128 128 { 129 129 if ((argc < 2) || (str_cmp(argv[1], "get-ns") == 0)) 130 return EXIT_RC(dnscfg_print());130 return dnscfg_print(); 131 131 else if (str_cmp(argv[1], "set-ns") == 0) 132 return EXIT_RC(dnscfg_set_ns(argc - 2, argv + 2));132 return dnscfg_set_ns(argc - 2, argv + 2); 133 133 else if (str_cmp(argv[1], "unset-ns") == 0) 134 return EXIT_RC(dnscfg_unset_ns());134 return dnscfg_unset_ns(); 135 135 else { 136 136 printf("%s: Unknown command '%s'.\n", NAME, argv[1]); -
uspace/app/dnsres/dnsres.c
rc81d4f1 r3b47db6 81 81 if (rc != EOK) { 82 82 printf("%s: Error resolving '%s'.\n", NAME, hname); 83 return EXIT_RC(rc);83 return rc; 84 84 } 85 85 … … 89 89 dnsr_hostinfo_destroy(hinfo); 90 90 printf("%s: Error formatting address.\n", NAME); 91 return EXIT_RC(rc);91 return rc; 92 92 } 93 93 -
uspace/app/download/main.c
rc81d4f1 r3b47db6 240 240 if (ofile != NULL && fclose(ofile) != 0) { 241 241 printf("Error writing '%s'.\n", ofname); 242 return E XIT_RC(EIO);242 return EIO; 243 243 } 244 244 … … 252 252 if (ofile != NULL) 253 253 fclose(ofile); 254 return EXIT_RC(rc);254 return rc; 255 255 } 256 256 -
uspace/app/getterm/getterm.c
rc81d4f1 r3b47db6 138 138 printf("%s: Error waiting on %s (%s)\n", APP_NAME, term, 139 139 str_error(rc)); 140 return EXIT_RC(rc);140 return rc; 141 141 } 142 142 } … … 175 175 printf("%s: Error spawning %s (%s)\n", APP_NAME, cmd, 176 176 str_error(rc)); 177 return EXIT_RC(rc);177 return rc; 178 178 } 179 179 … … 184 184 printf("%s: Error waiting for %s (%s)\n", APP_NAME, cmd, 185 185 str_error(rc)); 186 return EXIT_RC(rc);186 return rc; 187 187 } 188 188 -
uspace/app/kio/kio.c
rc81d4f1 r3b47db6 191 191 fprintf(stderr, "%s: Unable to get number of kio pages\n", 192 192 NAME); 193 return EXIT_RC(rc);193 return rc; 194 194 } 195 195 … … 199 199 fprintf(stderr, "%s: Unable to get kio physical address\n", 200 200 NAME); 201 return EXIT_RC(rc);201 return rc; 202 202 } 203 203 … … 209 209 if (rc != EOK) { 210 210 fprintf(stderr, "%s: Unable to map kio\n", NAME); 211 return EXIT_RC(rc);211 return rc; 212 212 } 213 213 … … 217 217 fprintf(stderr, "%s: Unable to register kio notifications\n", 218 218 NAME); 219 return EXIT_RC(rc);219 return rc; 220 220 } 221 221 … … 224 224 fprintf(stderr, "%s: Unable to create consumer fibril\n", 225 225 NAME); 226 return E XIT_RC(ENOMEM);226 return ENOMEM; 227 227 } 228 228 … … 230 230 if (!input) { 231 231 fprintf(stderr, "%s: Could not create input\n", NAME); 232 return E XIT_RC(ENOMEM);232 return ENOMEM; 233 233 } 234 234 … … 253 253 rc = EOK; 254 254 255 return EXIT_RC(rc);255 return rc; 256 256 } 257 257 -
uspace/app/mkbd/main.c
rc81d4f1 r3b47db6 222 222 printf("Device not found or not of USB kind: %s.\n", 223 223 str_error(rc)); 224 return EXIT_RC(rc);224 return rc; 225 225 } 226 226 … … 229 229 printf(NAME ": failed to connect to the device (handle %" 230 230 PRIun "): %s.\n", dev_handle, str_error(errno)); 231 return EXIT_RC(errno);231 return errno; 232 232 } 233 233 … … 239 239 printf(NAME ": failed to get path (handle %" 240 240 PRIun "): %s.\n", dev_handle, str_error(errno)); 241 return E XIT_RC(ENOMEM);241 return ENOMEM; 242 242 } 243 243 … … 250 250 printf("Failed to initialize report parser: %s\n", 251 251 str_error(rc)); 252 return EXIT_RC(rc);252 return rc; 253 253 } 254 254 … … 259 259 if (rc != EOK) { 260 260 printf("Failed to get event length: %s.\n", str_error(rc)); 261 return EXIT_RC(rc);261 return rc; 262 262 } 263 263 … … 266 266 printf("Out of memory.\n"); 267 267 // TODO: hangup phone? 268 return E XIT_RC(ENOMEM);268 return ENOMEM; 269 269 } 270 270 -
uspace/app/nic/nic.c
rc81d4f1 r3b47db6 544 544 545 545 if (!str_cmp(argv[2], "addr")) 546 return EXIT_RC(nic_set_addr(index, argv[3]));546 return nic_set_addr(index, argv[3]); 547 547 548 548 if (!str_cmp(argv[2], "speed")) 549 return EXIT_RC(nic_set_speed(index, argv[3]));549 return nic_set_speed(index, argv[3]); 550 550 551 551 if (!str_cmp(argv[2], "duplex")) 552 return EXIT_RC(nic_set_duplex(index, argv[3]));552 return nic_set_duplex(index, argv[3]); 553 553 554 554 if (!str_cmp(argv[2], "auto")) 555 return EXIT_RC(nic_set_autoneg(index));555 return nic_set_autoneg(index); 556 556 557 557 if (!str_cmp(argv[2], "unicast")) 558 return EXIT_RC(nic_set_rx_unicast(index, argv[3]));558 return nic_set_rx_unicast(index, argv[3]); 559 559 560 560 if (!str_cmp(argv[2], "multicast")) 561 return EXIT_RC(nic_set_rx_multicast(index, argv[3]));561 return nic_set_rx_multicast(index, argv[3]); 562 562 563 563 if (!str_cmp(argv[2], "broadcast")) 564 return EXIT_RC(nic_set_rx_broadcast(index, argv[3]));564 return nic_set_rx_broadcast(index, argv[3]); 565 565 566 566 } else { -
uspace/app/sysinfo/sysinfo.c
rc81d4f1 r3b47db6 182 182 break; 183 183 case SYSINFO_VAL_VAL: 184 rc = EXIT_RC(print_item_val(ipath));184 rc = print_item_val(ipath); 185 185 break; 186 186 case SYSINFO_VAL_DATA: -
uspace/app/sysinst/sysinst.c
rc81d4f1 r3b47db6 387 387 { 388 388 const char *dev = DEFAULT_DEV; 389 return EXIT_RC(sysinst_install(dev));389 return sysinst_install(dev); 390 390 } 391 391 -
uspace/app/vuhid/main.c
rc81d4f1 r3b47db6 238 238 printf("Unable to start communication with VHCD `%s': %s.\n", 239 239 controller, str_error(rc)); 240 return EXIT_RC(rc);240 return rc; 241 241 } 242 242 -
uspace/app/websrv/websrv.c
rc81d4f1 r3b47db6 450 450 rc = parse_option(argc, argv, &i); 451 451 if (rc != EOK) 452 return EXIT_RC(rc);452 return rc; 453 453 } else { 454 454 usage(); 455 return E XIT_RC(EINVAL);455 return EINVAL; 456 456 } 457 457 } -
uspace/app/wifi_supplicant/wifi_supplicant.c
rc81d4f1 r3b47db6 293 293 if (argc == 2) { 294 294 if (!str_cmp(argv[1], "list")) 295 return EXIT_RC(wifi_list());295 return wifi_list(); 296 296 } else if (argc > 2) { 297 297 uint32_t index; … … 300 300 printf("%s: Invalid argument.\n", NAME); 301 301 print_syntax(); 302 return E XIT_RC(EINVAL);302 return EINVAL; 303 303 } 304 304 … … 309 309 now = true; 310 310 311 return EXIT_RC(wifi_scan(index, now));311 return wifi_scan(index, now); 312 312 } else if (!str_cmp(argv[1], "connect")) { 313 313 char *pass = NULL; … … 316 316 pass = argv[4]; 317 317 318 return EXIT_RC(wifi_connect(index, argv[3], pass));318 return wifi_connect(index, argv[3], pass); 319 319 } 320 320 } else if (!str_cmp(argv[1], "disconnect")) 321 return EXIT_RC(wifi_disconnect(index));321 return wifi_disconnect(index); 322 322 } 323 323 -
uspace/drv/nic/rtl8139/driver.c
rc81d4f1 r3b47db6 2145 2145 errno_t rc = nic_driver_init(NAME); 2146 2146 if (rc != EOK) 2147 return EXIT_RC(rc);2147 return rc; 2148 2148 2149 2149 nic_driver_implement(&rtl8139_driver_ops, &rtl8139_dev_ops, -
uspace/drv/nic/rtl8169/driver.c
rc81d4f1 r3b47db6 1210 1210 errno_t rc = nic_driver_init(NAME); 1211 1211 if (rc != EOK) 1212 return EXIT_RC(rc);1212 return rc; 1213 1213 nic_driver_implement( 1214 1214 &rtl8169_driver_ops, &rtl8169_dev_ops, &rtl8169_nic_iface); -
uspace/lib/c/include/stdlib.h
rc81d4f1 r3b47db6 54 54 #define EXIT_FAILURE -1 55 55 56 #include <errno.h>57 static inline int EXIT_RC(errno_t rc) {58 return (int) rc;59 }60 61 56 #endif 62 57 -
uspace/lib/drv/generic/driver.c
rc81d4f1 r3b47db6 978 978 if (rc != EOK) { 979 979 printf("Error: Failed to create driver port.\n"); 980 return EXIT_RC(rc);980 return rc; 981 981 } 982 982 … … 985 985 if (rc != EOK) { 986 986 printf("Error: Failed to create devman port.\n"); 987 return EXIT_RC(rc);987 return rc; 988 988 } 989 989 … … 996 996 str_error(rc)); 997 997 998 return EXIT_RC(rc);998 return rc; 999 999 } 1000 1000 … … 1003 1003 if (rc != EOK) { 1004 1004 printf("Error: Failed returning task value.\n"); 1005 return EXIT_RC(rc);1005 return rc; 1006 1006 } 1007 1007 -
uspace/srv/audio/hound/main.c
rc81d4f1 r3b47db6 80 80 log_fatal("Failed to initialize hound structure: %s", 81 81 str_error(ret)); 82 return EXIT_RC(ret);82 return ret; 83 83 } 84 84 … … 91 91 if (ret != EOK) { 92 92 log_fatal("Failed to register server: %s", str_error(ret)); 93 return EXIT_RC(ret);93 return ret; 94 94 } 95 95 … … 99 99 str_error(ret)); 100 100 hound_server_unregister(id); 101 return EXIT_RC(ret);101 return ret; 102 102 } 103 103 log_info("Running with service id %" PRIun, id); -
uspace/srv/bd/file_bd/file_bd.c
rc81d4f1 r3b47db6 138 138 printf("%s: Unable to register device '%s': %s.\n", 139 139 NAME, device_name, str_error(rc)); 140 return EXIT_RC(rc);140 return rc; 141 141 } 142 142 … … 144 144 if (rc != EOK) { 145 145 printf("%s: Failed resolving category 'disk': %s\n", NAME, str_error(rc)); 146 return EXIT_RC(rc);146 return rc; 147 147 } 148 148 … … 151 151 printf("%s: Failed adding %s to category: %s", 152 152 NAME, device_name, str_error(rc)); 153 return EXIT_RC(rc);153 return rc; 154 154 } 155 155 -
uspace/srv/bd/sata_bd/sata_bd.c
rc81d4f1 r3b47db6 253 253 if (rc != EOK) { 254 254 printf(NAME ": Unable to register driver: %s.\n", str_error(rc)); 255 return EXIT_RC(rc);255 return rc; 256 256 } 257 257 … … 259 259 if (rc != EOK) { 260 260 printf(NAME ": Cannot find SATA disks: %s.\n", str_error(rc)); 261 return EXIT_RC(rc);261 return rc; 262 262 } 263 263 … … 265 265 if (rc != EOK) { 266 266 printf("%s: Failed resolving category 'disk': %s.\n", NAME, str_error(rc)); 267 return EXIT_RC(rc);267 return rc; 268 268 } 269 269 … … 274 274 if (rc != EOK) { 275 275 printf(NAME ": Unable to register device %s: %s\n", name, str_error(rc)); 276 return EXIT_RC(rc);276 return rc; 277 277 } 278 278 … … 281 281 printf("%s: Failed adding %s to category: %s.", 282 282 NAME, disk[i].dev_name, str_error(rc)); 283 return EXIT_RC(rc);283 return rc; 284 284 } 285 285 } -
uspace/srv/clipboard/clipboard.c
rc81d4f1 r3b47db6 190 190 if (rc != EOK) { 191 191 printf("%s: Failed registering server: %s\n", NAME, str_error(rc)); 192 return EXIT_RC(rc);192 return rc; 193 193 } 194 194 … … 196 196 if (rc != EOK) { 197 197 printf("%s: Failed registering service : %s\n", NAME, str_error(rc)); 198 return EXIT_RC(rc);198 return rc; 199 199 } 200 200 -
uspace/srv/devman/main.c
rc81d4f1 r3b47db6 320 320 if (rc != EOK) { 321 321 printf("%s: Error initializing logging subsystem: %s\n", NAME, str_error(rc)); 322 return EXIT_RC(rc);322 return rc; 323 323 } 324 324 … … 332 332 if (rc != EOK) { 333 333 printf("%s: Error creating DDF driver port: %s\n", NAME, str_error(rc)); 334 return EXIT_RC(rc);334 return rc; 335 335 } 336 336 … … 339 339 if (rc != EOK) { 340 340 printf("%s: Error creating DDF client port: %s\n", NAME, str_error(rc)); 341 return EXIT_RC(rc);341 return rc; 342 342 } 343 343 … … 346 346 if (rc != EOK) { 347 347 printf("%s: Error creating devman device port: %s\n", NAME, str_error(rc)); 348 return EXIT_RC(rc);348 return rc; 349 349 } 350 350 … … 353 353 if (rc != EOK) { 354 354 printf("%s: Error creating devman parent port: %s\n", NAME, str_error(rc)); 355 return EXIT_RC(rc);355 return rc; 356 356 } 357 357 … … 367 367 if (rc != EOK) { 368 368 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering as a service: %s", str_error(rc)); 369 return EXIT_RC(rc);369 return rc; 370 370 } 371 371 -
uspace/srv/fs/cdfs/cdfs.c
rc81d4f1 r3b47db6 86 86 if (rc != EOK) { 87 87 printf("%s: Failed to register file system: %s\n", NAME, str_error(rc)); 88 return EXIT_RC(rc);88 return rc; 89 89 } 90 90 -
uspace/srv/fs/exfat/exfat.c
rc81d4f1 r3b47db6 98 98 err: 99 99 printf(NAME ": Failed to register file system: %s\n", str_error(rc)); 100 return EXIT_RC(rc);100 return rc; 101 101 } 102 102 -
uspace/srv/fs/ext4fs/ext4fs.c
rc81d4f1 r3b47db6 76 76 if (rc != EOK) { 77 77 printf("%s: Global initialization failed\n", NAME); 78 return EXIT_RC(rc);78 return rc; 79 79 } 80 80 … … 83 83 if (rc != EOK) { 84 84 printf("%s: Failed to register file system\n", NAME); 85 return EXIT_RC(rc);85 return rc; 86 86 } 87 87 -
uspace/srv/fs/fat/fat.c
rc81d4f1 r3b47db6 98 98 err: 99 99 printf(NAME ": Failed to register file system: %s\n", str_error(rc)); 100 return EXIT_RC(rc);100 return rc; 101 101 } 102 102 -
uspace/srv/fs/locfs/locfs.c
rc81d4f1 r3b47db6 90 90 if (rc != EOK) { 91 91 printf("%s: Failed to register file system: %s\n", NAME, str_error(rc)); 92 return EXIT_RC(rc);92 return rc; 93 93 } 94 94 -
uspace/srv/fs/mfs/mfs.c
rc81d4f1 r3b47db6 100 100 err: 101 101 printf(NAME ": Failed to register file system: %s\n", str_error(rc)); 102 return EXIT_RC(rc);102 return rc; 103 103 } 104 104 -
uspace/srv/fs/tmpfs/tmpfs.c
rc81d4f1 r3b47db6 92 92 if (rc != EOK) { 93 93 printf(NAME ": Failed to register file system: %s\n", str_error(rc)); 94 return EXIT_RC(rc);94 return rc; 95 95 } 96 96 -
uspace/srv/fs/udf/udf.c
rc81d4f1 r3b47db6 99 99 err: 100 100 log_msg(LOG_DEFAULT, LVL_FATAL, "Failed to register file system: %s", str_error(rc)); 101 return EXIT_RC(rc);101 return rc; 102 102 } 103 103 -
uspace/srv/hid/compositor/compositor.c
rc81d4f1 r3b47db6 2316 2316 errno_t rc = compositor_srv_init(argv[1], argv[2]); 2317 2317 if (rc != EOK) 2318 return EXIT_RC(rc);2318 return rc; 2319 2319 2320 2320 printf("%s: Accepting connections\n", NAME); -
uspace/srv/hid/input/input.c
rc81d4f1 r3b47db6 869 869 if (rc != EOK) { 870 870 printf("%s: Unable to register server\n", NAME); 871 return EXIT_RC(rc);871 return rc; 872 872 } 873 873 … … 876 876 if (rc != EOK) { 877 877 printf("%s: Unable to register service %s\n", NAME, argv[1]); 878 return EXIT_RC(rc);878 return rc; 879 879 } 880 880 -
uspace/srv/hid/isdv4_tablet/main.c
rc81d4f1 r3b47db6 315 315 if (rc != EOK) { 316 316 printf("%s: Unable to register driver.\n", NAME); 317 return EXIT_RC(rc);317 return rc; 318 318 } 319 319 … … 322 322 if (asprintf(&service_name, "mouse/isdv4-%" PRIun, svc_id) < 0) { 323 323 printf(NAME ": Unable to create service name\n"); 324 return E XIT_RC(ENOMEM);324 return ENOMEM; 325 325 } 326 326 … … 328 328 if (rc != EOK) { 329 329 printf(NAME ": Unable to register service %s.\n", service_name); 330 return EXIT_RC(rc);330 return rc; 331 331 } 332 332 -
uspace/srv/hid/output/output.c
rc81d4f1 r3b47db6 470 470 if (rc != EOK) { 471 471 printf("%s: Unable to register driver\n", NAME); 472 return EXIT_RC(rc);472 return rc; 473 473 } 474 474 … … 477 477 if (rc != EOK) { 478 478 printf("%s: Unable to register service %s\n", NAME, argv[1]); 479 return EXIT_RC(rc);479 return rc; 480 480 } 481 481 -
uspace/srv/hid/remcons/remcons.c
rc81d4f1 r3b47db6 353 353 if (rc != EOK) { 354 354 fprintf(stderr, "%s: Unable to register server\n", NAME); 355 return EXIT_RC(rc);355 return rc; 356 356 } 357 357 … … 359 359 if (rc != EOK) { 360 360 fprintf(stderr, "%s: Error initializing TCP.\n", NAME); 361 return EXIT_RC(rc);361 return rc; 362 362 } 363 363 … … 369 369 if (rc != EOK) { 370 370 fprintf(stderr, "%s: Error creating listener.\n", NAME); 371 return EXIT_RC(rc);371 return rc; 372 372 } 373 373 -
uspace/srv/hid/rfb/main.c
rc81d4f1 r3b47db6 220 220 if (rc != EOK) { 221 221 printf("%s: Unable to register server.\n", NAME); 222 return EXIT_RC(rc);222 return rc; 223 223 } 224 224 … … 226 226 if (asprintf(&service_name, "rfb/%s", rfb_name) < 0) { 227 227 printf(NAME ": Unable to create service name\n"); 228 return E XIT_RC(ENOMEM);228 return ENOMEM; 229 229 } 230 230 … … 234 234 if (rc != EOK) { 235 235 printf(NAME ": Unable to register service %s.\n", service_name); 236 return EXIT_RC(rc);236 return rc; 237 237 } 238 238 -
uspace/srv/hid/s3c24xx_ts/s3c24xx_ts.c
rc81d4f1 r3b47db6 88 88 if (rc != EOK) { 89 89 printf("%s: Unable to register driver.\n", NAME); 90 return EXIT_RC(rc);90 return rc; 91 91 } 92 92 -
uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart.c
rc81d4f1 r3b47db6 85 85 if (rc != EOK) { 86 86 printf("%s: Unable to register server.\n", NAME); 87 return EXIT_RC(rc);87 return rc; 88 88 } 89 89 -
uspace/srv/klog/klog.c
rc81d4f1 r3b47db6 213 213 if (rc != EOK) { 214 214 fprintf(stderr, "%s: Unable to initialize log\n", NAME); 215 return EXIT_RC(rc);215 return rc; 216 216 } 217 217 … … 232 232 log_msg(LOG_DEFAULT, LVL_ERROR, 233 233 "Unable to register klog notifications"); 234 return EXIT_RC(rc);234 return rc; 235 235 } 236 236 … … 239 239 log_msg(LOG_DEFAULT, LVL_ERROR, 240 240 "Unable to create consumer fibril"); 241 return E XIT_RC(ENOMEM);241 return ENOMEM; 242 242 } 243 243 -
uspace/srv/loader/main.c
rc81d4f1 r3b47db6 397 397 errno_t rc = ns_intro(id); 398 398 if (rc != EOK) 399 return EXIT_RC(rc);399 return rc; 400 400 401 401 /* Create port */ … … 403 403 rc = async_create_port(INTERFACE_LOADER, ldr_connection, NULL, &port); 404 404 if (rc != EOK) 405 return EXIT_RC(rc);405 return rc; 406 406 407 407 /* Register at naming service. */ 408 408 rc = service_register(SERVICE_LOADER); 409 409 if (rc != EOK) 410 return EXIT_RC(rc);410 return rc; 411 411 412 412 async_manager(); -
uspace/srv/locsrv/locsrv.c
rc81d4f1 r3b47db6 1532 1532 if (rc != EOK) { 1533 1533 printf("%s: Error while creating supplier port: %s\n", NAME, str_error(rc)); 1534 return EXIT_RC(rc);1534 return rc; 1535 1535 } 1536 1536 … … 1539 1539 if (rc != EOK) { 1540 1540 printf("%s: Error while creating consumer port: %s\n", NAME, str_error(rc)); 1541 return EXIT_RC(rc);1541 return rc; 1542 1542 } 1543 1543 … … 1549 1549 if (rc != EOK) { 1550 1550 printf("%s: Error while registering service: %s\n", NAME, str_error(rc)); 1551 return EXIT_RC(rc);1551 return rc; 1552 1552 } 1553 1553 -
uspace/srv/logger/main.c
rc81d4f1 r3b47db6 74 74 if (rc != EOK) { 75 75 printf("%s: Error while creating control port: %s\n", NAME, str_error(rc)); 76 return EXIT_RC(rc);76 return rc; 77 77 } 78 78 … … 81 81 if (rc != EOK) { 82 82 printf("%s: Error while creating writer port: %s\n", NAME, str_error(rc)); 83 return EXIT_RC(rc);83 return rc; 84 84 } 85 85 -
uspace/srv/net/loopip/loopip.c
rc81d4f1 r3b47db6 253 253 if (rc != EOK) { 254 254 printf("%s: Failed to initialize logging: %s.\n", NAME, str_error(rc)); 255 return EXIT_RC(rc);255 return rc; 256 256 } 257 257 … … 259 259 if (rc != EOK) { 260 260 printf("%s: Failed to initialize loopip: %s.\n", NAME, str_error(rc)); 261 return EXIT_RC(rc);261 return rc; 262 262 } 263 263 -
uspace/srv/net/slip/slip.c
rc81d4f1 r3b47db6 421 421 if (argc != 3) { 422 422 usage(); 423 return E XIT_RC(EINVAL);423 return EINVAL; 424 424 } 425 425 … … 427 427 if (rc != EOK) { 428 428 printf(NAME ": failed to initialize log\n"); 429 return EXIT_RC(rc);429 return rc; 430 430 } 431 431 -
uspace/srv/ns/ns.c
rc81d4f1 r3b47db6 134 134 errno_t rc = service_init(); 135 135 if (rc != EOK) 136 return EXIT_RC(rc);136 return rc; 137 137 138 138 rc = clonable_init(); 139 139 if (rc != EOK) 140 return EXIT_RC(rc);140 return rc; 141 141 142 142 rc = task_init(); 143 143 if (rc != EOK) 144 return EXIT_RC(rc);144 return rc; 145 145 146 146 async_set_fallback_port_handler(ns_connection, NULL); -
uspace/srv/test/chardev-test/main.c
rc81d4f1 r3b47db6 115 115 if (rc != EOK) { 116 116 printf("%s: Failed registering server.: %s\n", NAME, str_error(rc)); 117 return EXIT_RC(rc);117 return rc; 118 118 } 119 119 … … 133 133 if (rc != EOK) { 134 134 printf("%s: Failed registering service.: %s\n", NAME, str_error(rc)); 135 return EXIT_RC(rc);135 return rc; 136 136 } 137 137 … … 139 139 if (rc != EOK) { 140 140 printf("%s: Failed registering service.: %s\n", NAME, str_error(rc)); 141 return EXIT_RC(rc);141 return rc; 142 142 } 143 143 … … 145 145 if (rc != EOK) { 146 146 printf("%s: Failed registering service.: %s\n", NAME, str_error(rc)); 147 return EXIT_RC(rc);147 return rc; 148 148 } 149 149 -
uspace/srv/vfs/vfs.c
rc81d4f1 r3b47db6 98 98 printf("%s: Failed to initialize VFS node hash table\n", 99 99 NAME); 100 return E XIT_RC(ENOMEM);100 return ENOMEM; 101 101 } 102 102 … … 108 108 if (plb == AS_MAP_FAILED) { 109 109 printf("%s: Cannot create address space area\n", NAME); 110 return E XIT_RC(ENOMEM);110 return ENOMEM; 111 111 } 112 112 memset(plb, 0, PLB_SIZE); … … 125 125 if (rc != EOK) { 126 126 printf("%s: Cannot create pager port: %s\n", NAME, str_error(rc)); 127 return EXIT_RC(rc);127 return rc; 128 128 } 129 129 … … 145 145 if (rc != EOK) { 146 146 printf("%s: Cannot register VFS service: %s\n", NAME, str_error(rc)); 147 return EXIT_RC(rc);147 return rc; 148 148 } 149 149
Note:
See TracChangeset
for help on using the changeset viewer.