Changeset c1694b6b in mainline for uspace/app/tester


Ignore:
Timestamp:
2017-12-08T21:03:35Z (8 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f77c1c9
Parents:
9eb1ff5
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-07 18:20:13)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-08 21:03:35)
Message:

Add str_error() in numerous places.

Location:
uspace/app/tester
Files:
3 edited

Legend:

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

    r9eb1ff5 rc1694b6b  
    2828
    2929#include <errno.h>
     30#include <str_error.h>
    3031#include <ipc/services.h>
    3132#include <io/chardev.h>
     
    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);
  • uspace/app/tester/mm/mapping1.c

    r9eb1ff5 rc1694b6b  
    3030#include <stdlib.h>
    3131#include <stddef.h>
     32#include <str_error.h>
    3233#include <as.h>
    3334#include <errno.h>
     
    7475                int rc = as_get_physical_mapping(page_start, NULL);
    7576                if (rc != expected_rc) {
    76                         TPRINTF("as_get_physical_mapping() = %d != %d\n",
    77                             rc, expected_rc);
     77                        TPRINTF("as_get_physical_mapping() = %s != %s\n",
     78                            str_error_name(rc), str_error_name(expected_rc));
    7879                        return false;
    7980                }
  • uspace/app/tester/vfs/vfs1.c

    r9eb1ff5 rc1694b6b  
    3131#include <stdlib.h>
    3232#include <stddef.h>
     33#include <str_error.h>
    3334#include <str.h>
    3435#include <vfs/vfs.h>
     
    9596        TPRINTF("read..\n");
    9697        while ((rc = vfs_read(fd0, &pos, buf, BUF_SIZE, &cnt))) {
    97                 TPRINTF("read returns rc = %d, cnt = %zu\n", rc, cnt);
     98                TPRINTF("read returns rc = %s, cnt = %zu\n", str_error_name(rc), cnt);
    9899                if (rc != EOK)
    99100                        return "read() failed";
Note: See TracChangeset for help on using the changeset viewer.