coredump: include error cause in log message

This commit is contained in:
Yu Watanabe 2018-10-20 01:43:13 +09:00
parent 5e1ee764e1
commit 9d77ca39e5
2 changed files with 3 additions and 3 deletions

View file

@ -340,7 +340,7 @@ static int save_external_coredump(
r = safe_atou64(context[CONTEXT_RLIMIT], &rlimit);
if (r < 0)
return log_error_errno(r, "Failed to parse resource limit: %s", context[CONTEXT_RLIMIT]);
return log_error_errno(r, "Failed to parse resource limit '%s': %m", context[CONTEXT_RLIMIT]);
if (rlimit < page_size()) {
/* Is coredumping disabled? Then don't bother saving/processing the coredump.
* Anything below PAGE_SIZE cannot give a readable coredump (the kernel uses

View file

@ -237,13 +237,13 @@ static int parse_argv(int argc, char *argv[]) {
case 'S':
r = parse_timestamp(optarg, &arg_since);
if (r < 0)
return log_error_errno(r, "Failed to parse timestamp: %s", optarg);
return log_error_errno(r, "Failed to parse timestamp '%s': %m", optarg);
break;
case 'U':
r = parse_timestamp(optarg, &arg_until);
if (r < 0)
return log_error_errno(r, "Failed to parse timestamp: %s", optarg);
return log_error_errno(r, "Failed to parse timestamp '%s': %m", optarg);
break;
case 'F':