Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/init/init.c

    r7c014d1 r53d6ac3d  
    196196}
    197197
    198 static void console(const char *isvc, const char *fbsvc)
    199 {
    200         printf("%s: Spawning %s %s %s\n", NAME, SRV_CONSOLE, isvc, fbsvc);
     198static void console(const char *svc)
     199{
     200        printf("%s: Spawning %s %s\n", NAME, SRV_CONSOLE, svc);
    201201       
    202202        /* Wait for the input service to be ready */
    203203        service_id_t service_id;
    204         int rc = loc_service_get_id(isvc, &service_id, IPC_FLAG_BLOCKING);
    205         if (rc != EOK) {
    206                 printf("%s: Error waiting on %s (%s)\n", NAME, isvc,
    207                     str_error(rc));
    208                 return;
    209         }
    210        
    211         /* Wait for the framebuffer service to be ready */
    212         rc = loc_service_get_id(fbsvc, &service_id, IPC_FLAG_BLOCKING);
    213         if (rc != EOK) {
    214                 printf("%s: Error waiting on %s (%s)\n", NAME, fbsvc,
    215                     str_error(rc));
    216                 return;
    217         }
    218        
    219         rc = task_spawnl(NULL, SRV_CONSOLE, SRV_CONSOLE, isvc, fbsvc, NULL);
    220         if (rc != EOK) {
    221                 printf("%s: Error spawning %s %s %s (%s)\n", NAME, SRV_CONSOLE,
    222                     isvc, fbsvc, str_error(rc));
     204        int rc = loc_service_get_id(svc, &service_id, IPC_FLAG_BLOCKING);
     205        if (rc != EOK) {
     206                printf("%s: Error waiting on %s (%s)\n", NAME, svc,
     207                    str_error(rc));
     208                return;
     209        }
     210       
     211        rc = task_spawnl(NULL, SRV_CONSOLE, SRV_CONSOLE, svc, NULL);
     212        if (rc != EOK) {
     213                printf("%s: Error spawning %s %s (%s)\n", NAME, SRV_CONSOLE,
     214                    svc, str_error(rc));
    223215        }
    224216}
     
    308300        spawn("/srv/fb");
    309301        spawn("/srv/input");
    310         console("hid/input", "hid/fb0");
     302        console("hid/input");
    311303       
    312304        spawn("/srv/clip");
Note: See TracChangeset for help on using the changeset viewer.