summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarol Lewandowski <k.lewandowsk@samsung.com>2019-08-21 15:29:01 +0200
committerKarol Lewandowski <k.lewandowsk@samsung.com>2019-08-23 10:38:23 +0200
commit03cf13cbe094f874d5f273743e6af21f193f0a4e (patch)
tree400aa80e14382e89137800f8fc2d0bd74f2c57eb
parentbe51f6c2054edac30b31b80fa094614e018846dc (diff)
downloadcrash-worker-03cf13cbe094f874d5f273743e6af21f193f0a4e.tar.gz
crash-worker-03cf13cbe094f874d5f273743e6af21f193f0a4e.tar.bz2
crash-worker-03cf13cbe094f874d5f273743e6af21f193f0a4e.zip
crash-manager: print textual error code where possible
Change-Id: Ia2536417d55d9b8275424983ce24ec6cdadc7d5a
-rw-r--r--src/crash-manager/crash-manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crash-manager/crash-manager.c b/src/crash-manager/crash-manager.c
index 34e4c3f..1d3eb69 100644
--- a/src/crash-manager/crash-manager.c
+++ b/src/crash-manager/crash-manager.c
@@ -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);
}