core/execute: fix dump format for Limit*=
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 10 Aug 2018 04:03:02 +0000 (13:03 +0900)
committerLennart Poettering <lennart@poettering.net>
Fri, 10 Aug 2018 09:59:16 +0000 (11:59 +0200)
Fixes #9846.

src/core/execute.c

index ecf0f7c..67f6dbd 100644 (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);
                 }