From a4f77c4ca56ea21004b8d9c6af14eccade6045e4 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Wed, 8 Oct 2003 15:05:00 +0000 Subject: first attempt of updating stage1 for MandrakeMove --- mdk-stage1/tools.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'mdk-stage1/tools.c') 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; +} -- cgit v1.2.1