Changes in uspace/app/tester/stdio/stdio2.c [9af1c61:582a0b8] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/stdio/stdio2.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" … … 43 42 file = fopen(file_name, "wt"); 44 43 if (file == NULL) { 45 TPRINTF("errno = % s\n", str_error_name(errno));44 TPRINTF("errno = %d\n", errno); 46 45 return "Failed opening file"; 47 46 } else … … 54 53 TPRINTF("Close..."); 55 54 if (fclose(file) != 0) { 56 TPRINTF("errno = % s\n", str_error_name(errno));55 TPRINTF("errno = %d\n", errno); 57 56 return "Failed closing file"; 58 57 } else … … 62 61 file = fopen(file_name, "rt"); 63 62 if (file == NULL) { 64 TPRINTF("errno = % s\n", str_error_name(errno));63 TPRINTF("errno = %d\n", errno); 65 64 return "Failed opening file"; 66 65 } else … … 77 76 TPRINTF("\nClose..."); 78 77 if (fclose(file) != 0) { 79 TPRINTF("errno = % s\n", str_error_name(errno));78 TPRINTF("errno = %d\n", errno); 80 79 return "Failed closing file"; 81 80 } else
Note:
See TracChangeset
for help on using the changeset viewer.