coredump: include error cause in log message
This commit is contained in:
parent
5e1ee764e1
commit
9d77ca39e5
|
@ -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
|
||||
|
|
|
@ -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':
|
||||
|
|
Loading…
Reference in a new issue