Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tester/stdio/stdio1.c

    r9af1c61 r582a0b8  
    3030#include <stdlib.h>
    3131#include <stddef.h>
    32 #include <str_error.h>
    3332#include <errno.h>
    3433#include "../tester.h"
     
    4746        file = fopen(file_name, "rt");
    4847        if (file == NULL) {
    49                 TPRINTF("errno = %s\n", str_error_name(errno));
     48                TPRINTF("errno = %d\n", errno);
    5049                return "Failed opening file";
    5150        } else
     
    5554        size_t cnt = fread(buf, 1, BUF_SIZE, file);
    5655        if (ferror(file)) {
    57                 TPRINTF("errno = %s\n", str_error_name(errno));
     56                TPRINTF("errno = %d\n", errno);
    5857                fclose(file);
    5958                return "Failed reading file";
     
    6665        TPRINTF("Seek to beginning...");
    6766        if (fseek(file, 0, SEEK_SET) != 0) {
    68                 TPRINTF("errno = %s\n", str_error_name(errno));
     67                TPRINTF("errno = %d\n", errno);
    6968                fclose(file);
    7069                return "Failed seeking in file";
     
    8483        TPRINTF("Close...");
    8584        if (fclose(file) != 0) {
    86                 TPRINTF("errno = %s\n", str_error_name(errno));
     85                TPRINTF("errno = %d\n", errno);
    8786                return "Failed closing file";
    8887        } else
Note: See TracChangeset for help on using the changeset viewer.