Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset a47f522 in mainline


Ignore:
Timestamp:
2012-06-01T19:09:51Z (8 years ago)
Author:
Martin Decky <martin@…>
Branches:
master
Children:
1038a9c
Parents:
d92c1ca
Message:

trivial changes (error code reporting, messages)

Location:
uspace/srv
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/clipboard/clipboard.c

    rd92c1ca ra47f522  
    181181       
    182182        async_set_client_connection(clip_connection);
    183        
    184         if (service_register(SERVICE_CLIPBOARD) != EOK)
    185                 return -1;
     183        int rc = service_register(SERVICE_CLIPBOARD);
     184        if (rc != EOK)
     185                return rc;
    186186       
    187187        printf("%s: Accepting connections\n", NAME);
  • uspace/srv/hid/fb/fb.c

    rd92c1ca ra47f522  
    990990        int rc = loc_server_register(NAME);
    991991        if (rc != EOK) {
    992                 printf("%s: Unable to register driver (%d)\n", NAME, rc);
    993                 return 1;
     992                printf("%s: Unable to register driver\n", NAME);
     993                return rc;
    994994        }
    995995       
  • uspace/srv/ns/ns.c

    rd92c1ca ra47f522  
    4848int main(int argc, char **argv)
    4949{
    50         printf(NAME ": HelenOS IPC Naming Service\n");
     50        printf("%s: HelenOS IPC Naming Service\n", NAME);
    5151       
    5252        int rc = service_init();
  • uspace/srv/vfs/vfs.c

    rd92c1ca ra47f522  
    159159int main(int argc, char **argv)
    160160{
    161         printf(NAME ": HelenOS VFS server\n");
     161        printf("%s: HelenOS VFS server\n", NAME);
    162162       
    163163        /*
     
    165165         */
    166166        if (!vfs_nodes_init()) {
    167                 printf(NAME ": Failed to initialize VFS node hash table\n");
     167                printf("%s: Failed to initialize VFS node hash table\n",
     168                    NAME);
    168169                return ENOMEM;
    169170        }
     
    175176            AS_AREA_READ | AS_AREA_WRITE | AS_AREA_CACHEABLE);
    176177        if (plb == (void *) -1) {
    177                 printf(NAME ": Cannot create address space area\n");
     178                printf("%s: Cannot create address space area\n", NAME);
    178179                return ENOMEM;
    179180        }
     
    196197        async_set_interrupt_received(notification_received);
    197198        event_task_subscribe(EVENT_TASK_STATE_CHANGE, VFS_TASK_STATE_CHANGE);
    198 
     199       
    199200        /*
    200201         * Register at the naming service.
    201202         */
    202         if (service_register(SERVICE_VFS) != EOK) {
     203        int rc = service_register(SERVICE_VFS);
     204        if (rc != EOK) {
    203205                printf("%s: Cannot register VFS service\n", NAME);
    204                 return EINVAL;
     206                return rc;
    205207        }
    206208       
     
    208210         * Start accepting connections.
    209211         */
    210         printf(NAME ": Accepting connections\n");
     212        printf("%s: Accepting connections\n", NAME);
    211213        async_manager();
    212214        return 0;
Note: See TracChangeset for help on using the changeset viewer.