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

Changeset 1b054a6f in mainline


Ignore:
Timestamp:
2012-06-01T19:20:47Z (8 years ago)
Author:
Martin Decky <martin@…>
Branches:
master
Children:
b39b5cb
Parents:
50ad3f3
Message:

trivial changes (error code reporting, messages)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart.c

    r50ad3f3 r1b054a6f  
    7777int main(int argc, char *argv[])
    7878{
    79         int rc;
    80 
    81         printf(NAME ": S3C24xx on-chip UART driver\n");
    82 
     79        printf("%s: S3C24xx on-chip UART driver\n", NAME);
     80       
    8381        async_set_client_connection(s3c24xx_uart_connection);
    84         rc = loc_server_register(NAME);
    85         if (rc < 0) {
    86                 printf(NAME ": Unable to register server.\n");
    87                 return -1;
     82        int rc = loc_server_register(NAME);
     83        if (rc != EOK) {
     84                printf("%s: Unable to register server.\n", NAME);
     85                return rc;
    8886        }
    8987
Note: See TracChangeset for help on using the changeset viewer.