Changes in uspace/app/tester/stdio/stdio1.c [9af1c61:582a0b8] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/stdio/stdio1.c
r9af1c61 r582a0b8 30 30 #include <stdlib.h> 31 31 #include <stddef.h> 32 #include <str_error.h>33 32 #include <errno.h> 34 33 #include "../tester.h" … … 47 46 file = fopen(file_name, "rt"); 48 47 if (file == NULL) { 49 TPRINTF("errno = % s\n", str_error_name(errno));48 TPRINTF("errno = %d\n", errno); 50 49 return "Failed opening file"; 51 50 } else … … 55 54 size_t cnt = fread(buf, 1, BUF_SIZE, file); 56 55 if (ferror(file)) { 57 TPRINTF("errno = % s\n", str_error_name(errno));56 TPRINTF("errno = %d\n", errno); 58 57 fclose(file); 59 58 return "Failed reading file"; … … 66 65 TPRINTF("Seek to beginning..."); 67 66 if (fseek(file, 0, SEEK_SET) != 0) { 68 TPRINTF("errno = % s\n", str_error_name(errno));67 TPRINTF("errno = %d\n", errno); 69 68 fclose(file); 70 69 return "Failed seeking in file"; … … 84 83 TPRINTF("Close..."); 85 84 if (fclose(file) != 0) { 86 TPRINTF("errno = % s\n", str_error_name(errno));85 TPRINTF("errno = %d\n", errno); 87 86 return "Failed closing file"; 88 87 } else
Note:
See TracChangeset
for help on using the changeset viewer.