Fix logging messages 87/195587/1
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>
Wed, 12 Dec 2018 16:53:01 +0000 (19:53 +0300)
committerVyacheslav Cherkashin <v.cherkashin@samsung.com>
Fri, 14 Dec 2018 13:26:43 +0000 (16:26 +0300)
Change-Id: I2cfbb1ac3fb8821da1ce548629a0c210fee5542b
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
helper/daforkexec.c
helper/dahelper.c

index 6b8affe..8ec159c 100644 (file)
@@ -107,7 +107,7 @@ int PROBE_NAME(execl)(const char *path, const char *arg, ...)
        res = _da_call_original(&execl_p, arg_arr, args_count);
        _init_();
 
-       PRINTWRN("%s(%s, ...) return %d", __FUNCTION__, res, path);
+       PRINTWRN("%s(%s, ...) return %d", __FUNCTION__, path, res);
        return res;
 }
 
index e224b93..d7079d4 100755 (executable)
@@ -246,7 +246,7 @@ static int _remove_binary(const char *path)
 
        real_path = realpath(path, NULL);
        if (real_path == NULL) {
-               PRINTERR("Cannot resolve real path for <%s> error %d\n", errno);
+               PRINTERR("Cannot resolve real path for <%s> error %d\n", path, errno);
                return -EINVAL;
        }