1abbee
From 0c4a5153b14701ffdbff2f768548d4a657b1ca9f Mon Sep 17 00:00:00 2001
1abbee
From: Evgeny Vereshchagin <evvers@ya.ru>
1abbee
Date: Fri, 27 Nov 2015 09:13:35 +0000
1abbee
Subject: [PATCH] core: dump rlim_cur too
1abbee
1abbee
Cherry-picked from: fdbbadbd0d13d3296b9aa4273aaeecd9ba6b82d1
1abbee
Related: #1351415
1abbee
---
1abbee
 src/core/execute.c | 4 ++--
1abbee
 1 file changed, 2 insertions(+), 2 deletions(-)
1abbee
1abbee
diff --git a/src/core/execute.c b/src/core/execute.c
c62b8e
index 8172c8b442..e9b4359a7f 100644
1abbee
--- a/src/core/execute.c
1abbee
+++ b/src/core/execute.c
1abbee
@@ -2254,8 +2254,8 @@ void exec_context_dump(ExecContext *c, FILE* f, const char *prefix) {
1abbee
 
1abbee
         for (i = 0; i < RLIM_NLIMITS; i++)
1abbee
                 if (c->rlimit[i])
1abbee
-                        fprintf(f, "%s%s: "RLIM_FMT"\n",
1abbee
-                                prefix, rlimit_to_string(i), c->rlimit[i]->rlim_max);
1abbee
+                        fprintf(f, "%s%s: " RLIM_FMT " " RLIM_FMT "\n",
1abbee
+                                prefix, rlimit_to_string(i), c->rlimit[i]->rlim_cur, c->rlimit[i]->rlim_max);
1abbee
 
1abbee
         if (c->ioprio_set) {
1abbee
                 _cleanup_free_ char *class_str = NULL;