crash-manager: print textual error code where possible 51/212451/5
authorKarol Lewandowski <k.lewandowsk@samsung.com>
Wed, 21 Aug 2019 13:29:01 +0000 (15:29 +0200)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Fri, 23 Aug 2019 08:38:23 +0000 (10:38 +0200)
Change-Id: Ia2536417d55d9b8275424983ce24ec6cdadc7d5a

src/crash-manager/crash-manager.c

index 34e4c3f..1d3eb69 100644 (file)
@@ -577,7 +577,7 @@ static int get_sysassert_cs(struct crash_info *cinfo)
        char move_path[PATH_MAX];
 
        if (access(cinfo->sysassert_cs_path, F_OK)) {
-               _E("The sys-assert cs file not found: %s",
+               _E("The sys-assert cs file not found: %s: %m",
                        cinfo->sysassert_cs_path);
                cinfo->have_sysassert_report = 0;
                return -1;
@@ -934,7 +934,7 @@ static int lock_dumpdir(void)
 static void unlock_dumpdir(int fd)
 {
        if (flock(fd, LOCK_UN) < 0)
-               _E("Failed to unlink (UNLOCK)");
+               _E("Failed to unlock file descriptor: %m");
        close(fd);
 }