core/execute: fix dump format for Limit*=

Fixes #9846.
This commit is contained in:
Yu Watanabe 2018-08-10 13:03:02 +09:00 committed by Lennart Poettering
parent 8595102d3d
commit 4c3a2b84d8
1 changed files with 2 additions and 2 deletions

View File

@ -4075,9 +4075,9 @@ void exec_context_dump(const ExecContext *c, FILE* f, const char *prefix) {
for (i = 0; i < RLIM_NLIMITS; i++)
if (c->rlimit[i]) {
fprintf(f, "Limit%s%s: " RLIM_FMT "\n",
fprintf(f, "%sLimit%s: " RLIM_FMT "\n",
prefix, rlimit_to_string(i), c->rlimit[i]->rlim_max);
fprintf(f, "Limit%s%sSoft: " RLIM_FMT "\n",
fprintf(f, "%sLimit%sSoft: " RLIM_FMT "\n",
prefix, rlimit_to_string(i), c->rlimit[i]->rlim_cur);
}