Skip to content
Snippets Groups Projects
Commit 4d89c260 authored by Lev Walkin's avatar Lev Walkin
Browse files

more info for debugging

parent 51be70ce
No related branches found
No related tags found
No related merge requests found
...@@ -104,7 +104,10 @@ typedef struct arg_s { ...@@ -104,7 +104,10 @@ typedef struct arg_s {
int _save_errno = errno; \ int _save_errno = errno; \
if(code < 0) { \ if(code < 0) { \
if(arg->debug) \ if(arg->debug) \
arg->debug(code, fmt, ##args); \ arg->debug(code, fmt " in %s (%s@%d)", \
##args, \
arg->mod->source_file_name, \
__FILE__, __LINE__); \
} else if(arg->eh) { \ } else if(arg->eh) { \
arg->eh(code, fmt " in %s", ##args, \ arg->eh(code, fmt " in %s", ##args, \
arg->mod->source_file_name); \ arg->mod->source_file_name); \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment