Ignore:
File:
1 edited

Legend:

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

    rb7fd2a0 r38d150e  
    3030#include <stdlib.h>
    3131#include <stddef.h>
    32 #include <str_error.h>
    3332#include <as.h>
    3433#include <errno.h>
     
    6665    verify_mapping((area), (page_count), (expected_rc), #expected_rc)
    6766
    68 static bool verify_mapping(void *area, int page_count, errno_t expected_rc,
     67static bool verify_mapping(void *area, int page_count, int expected_rc,
    6968    const char *expected_rc_str)
    7069{
     
    7372        for (i = 0; i < page_count; i++) {
    7473                void *page_start = ((char *) area) + PAGE_SIZE * i;
    75                 errno_t rc = as_get_physical_mapping(page_start, NULL);
     74                int rc = as_get_physical_mapping(page_start, NULL);
    7675                if (rc != expected_rc) {
    77                         TPRINTF("as_get_physical_mapping() = %s != %s\n",
    78                             str_error_name(rc), str_error_name(expected_rc));
     76                        TPRINTF("as_get_physical_mapping() = %d != %d\n",
     77                            rc, expected_rc);
    7978                        return false;
    8079                }
     
    8584const char *test_mapping1(void)
    8685{
    87         errno_t rc;
     86        int rc;
    8887       
    8988        size_t buffer1_len = BUFFER1_PAGES * PAGE_SIZE;
Note: See TracChangeset for help on using the changeset viewer.