[CRIU] [PATCH] proc: show a string in a error message if we can't parse it

Andrey Vagin avagin at openvz.org
Wed Jul 15 07:50:00 PDT 2015


Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 proc_parse.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/proc_parse.c b/proc_parse.c
index e940fc1..5b26b32 100644
--- a/proc_parse.c
+++ b/proc_parse.c
@@ -1109,7 +1109,7 @@ struct mount_info *parse_mountinfo(pid_t pid, struct ns_id *nsid, bool for_dump)
 
 		ret = parse_mountinfo_ent(str, new, &fsname);
 		if (ret < 0) {
-			pr_err("Bad format in %d mountinfo\n", pid);
+			pr_err("Bad format in %d mountinfo: '%s'\n", pid, str);
 			goto end;
 		}
 
-- 
2.1.0



More information about the CRIU mailing list