Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tester/mm/mapping1.c

    r38d150e rb7fd2a0  
    3030#include <stdlib.h>
    3131#include <stddef.h>
     32#include <str_error.h>
    3233#include <as.h>
    3334#include <errno.h>
     
    6566    verify_mapping((area), (page_count), (expected_rc), #expected_rc)
    6667
    67 static bool verify_mapping(void *area, int page_count, int expected_rc,
     68static bool verify_mapping(void *area, int page_count, errno_t expected_rc,
    6869    const char *expected_rc_str)
    6970{
     
    7273        for (i = 0; i < page_count; i++) {
    7374                void *page_start = ((char *) area) + PAGE_SIZE * i;
    74                 int rc = as_get_physical_mapping(page_start, NULL);
     75                errno_t 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                }
     
    8485const char *test_mapping1(void)
    8586{
    86         int rc;
     87        errno_t rc;
    8788       
    8889        size_t buffer1_len = BUFFER1_PAGES * PAGE_SIZE;
Note: See TracChangeset for help on using the changeset viewer.