diff options
Diffstat (limited to 'mdk-stage1/tools.c')
-rw-r--r-- | mdk-stage1/tools.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mdk-stage1/tools.c b/mdk-stage1/tools.c index 5faad8d88..89c87fbd1 100644 --- a/mdk-stage1/tools.c +++ b/mdk-stage1/tools.c @@ -435,3 +435,12 @@ int string_array_length(char ** a) } return i; } + +int scall_(int retval, char * msg, char * file, int line) +{ + char tmp[5000]; + sprintf(tmp, "%s(%s:%d) failed", msg, file, line); + if (retval) + log_perror(tmp); + return retval; +} |