From 3e46a959386aafba5bb9a67d96fe9c113fb68de2 Mon Sep 17 00:00:00 2001 From: Shiraz Hashim <shashim@codeaurora.org> Date: Wed, 11 Oct 2017 19:07:22 +0530 Subject: [PATCH] lrdp-v2: Fix kernel version usage Condition check must use ramdump.kernel_version and not ramdump.version. Fix it. Change-Id: Ic7969be9473671fd3f5f0de2eac7a40b50dc82ec --- linux-ramdump-parser-v2/mm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-ramdump-parser-v2/mm.py b/linux-ramdump-parser-v2/mm.py index a7661ce..b626981 100644 --- a/linux-ramdump-parser-v2/mm.py +++ b/linux-ramdump-parser-v2/mm.py @@ -22,7 +22,7 @@ def page_buddy(ramdump, page): def page_count(ramdump, page): """Commit: 0139aa7b7fa12ceef095d99dc36606a5b10ab83a mm: rename _count, field of the struct page, to _refcount""" - if (ramdump.version < (4, 6, 0)): + if (ramdump.kernel_version < (4, 6, 0)): count = ramdump.read_structure_field(page, 'struct page', '_count.counter') else: -- GitLab