[CRIU] [PATCH] zdtm: fix /proc/lock parsing

Konstantin Neumoin kneumoin at parallels.com
Fri Sep 5 02:33:03 PDT 2014


11: POSIX  ADVISORY  WRITE 1 b6:a4111:136512 0 EOF
---
 test/zdtm/live/static/file_locks01.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/zdtm/live/static/file_locks01.c b/test/zdtm/live/static/file_locks01.c
index 2ec8a04..d95bc41 100644
--- a/test/zdtm/live/static/file_locks01.c
+++ b/test/zdtm/live/static/file_locks01.c
@@ -90,7 +90,7 @@ static int check_file_locks()
 			continue;
 
 		num = sscanf(buf,
-			"%lld:%s %s %s %d %02x:%02x:%ld %lld %s",
+			"%lld:%s %s %s %d %x:%x:%ld %lld %s",
 			&fl_id, fl_flag, fl_type, fl_option,
 			&fl_owner, &maj, &min, &i_no, &start, end);
 
-- 
1.7.11.7



More information about the CRIU mailing list