Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tester/chardev/chardev1.c

    r57914494 rb7fd2a0  
    2828
    2929#include <errno.h>
     30#include <str_error.h>
    3031#include <ipc/services.h>
    3132#include <io/chardev.h>
     
    4647        async_sess_t *sess;
    4748        size_t nbytes;
    48         int rc;
     49        errno_t rc;
    4950
    5051        TPRINTF("Test small transfer character device operations\n");
     
    9899        async_sess_t *sess;
    99100        size_t nbytes;
    100         int rc;
     101        errno_t rc;
    101102
    102103        TPRINTF("Test large transfer character device operations\n");
     
    150151        async_sess_t *sess;
    151152        size_t nbytes;
    152         int rc;
     153        errno_t rc;
    153154
    154155        TPRINTF("Test partially-successful character device operations\n");
     
    177178        }
    178179
    179         TPRINTF("Sent %zu bytes and got rc = %d (expected)\n", nbytes, rc);
     180        TPRINTF("Sent %zu bytes and got rc = %s (expected)\n", nbytes,
     181            str_error_name(rc));
    180182
    181183        rc = chardev_read(chardev, small_buffer, SMALL_BUFFER_SIZE, &nbytes);
     
    186188        }
    187189
    188         TPRINTF("Received %zu bytes and got rc = %d (expected)\n", nbytes, rc);
     190        TPRINTF("Received %zu bytes and got rc = %s (expected)\n", nbytes,
     191            str_error_name(rc));
    189192
    190193        chardev_close(chardev);
Note: See TracChangeset for help on using the changeset viewer.