File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -45,16 +45,16 @@ typedef enum
45
45
if (_cmr_error) \
46
46
{ \
47
47
if (_cmr_error == CMR_ERROR_INPUT) \
48
- printf( "User input error"); \
48
+ fprintf(stderr, "User input error"); \
49
49
else if (_cmr_error == CMR_ERROR_MEMORY) \
50
- printf( "Memory (re)allocation failed"); \
50
+ fprintf(stderr, "Memory (re)allocation failed"); \
51
51
else if (_cmr_error == CMR_ERROR_INVALID) \
52
- printf( "Invalid input"); \
52
+ fprintf(stderr, "Invalid input"); \
53
53
else if (_cmr_error == CMR_ERROR_TIMEOUT) \
54
- printf( "Time limit exceeded"); \
54
+ fprintf(stderr, "Time limit exceeded"); \
55
55
else \
56
- printf( "Unknown error"); \
57
- printf( " in %s:%d.\n", __FILE__, __LINE__); \
56
+ fprintf(stderr, "Unknown error"); \
57
+ fprintf(stderr, " in %s:%d.\n", __FILE__, __LINE__); \
58
58
return _cmr_error; \
59
59
} \
60
60
} while (false)
You can’t perform that action at this time.
0 commit comments