138 |
#define FUNC_RETURN_(ret, fmt) \ |
#define FUNC_RETURN_(ret, fmt) \ |
139 |
{ \ |
{ \ |
140 |
int retval = (ret); \ |
int retval = (ret); \ |
141 |
DEBUG("tracing", "leaving %s (" __FILE__ ":%d) ret=%d (%s) ", \ |
DEBUG("tracing", "leaving %s (" __FILE__ ":%d) ret=%d ", \ |
142 |
debug_func_name, __LINE__, retval, strerror(retval)); \ |
debug_func_name, __LINE__, retval); \ |
143 |
if(debug_port) \ |
if(debug_port) \ |
144 |
{ \ |
{ \ |
145 |
|
if(retval) \ |
146 |
|
fprintf(debug_port, "(%s) ", strerror(retval)); \ |
147 |
fmt; \ |
fmt; \ |
148 |
fprintf(debug_port, "\n"); \ |
fprintf(debug_port, "\n"); \ |
149 |
} \ |
} \ |