From 540345e9e2e2de647dc6ffe03a7bb7b56502d2d0 Mon Sep 17 00:00:00 2001 From: Mitchel Humpherys <mitchelh@codeaurora.org> Date: Wed, 23 Apr 2014 10:49:57 -0700 Subject: [PATCH] lrdp-v2: vmalloc: use new ListWalker constructor ListWalker.__init__ was recently changed to remove some unneeded arguments. The vmalloc parser was also updated at roughly the same time with a new usage of the ListWalker class and was using the old constructor. Update it. Change-Id: Ia47c22511aab7207b65813d25c9f97d65c24e2db --- linux-ramdump-parser-v2/parsers/vmalloc.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/linux-ramdump-parser-v2/parsers/vmalloc.py b/linux-ramdump-parser-v2/parsers/vmalloc.py index a56ceb4..54ff28e 100644 --- a/linux-ramdump-parser-v2/parsers/vmalloc.py +++ b/linux-ramdump-parser-v2/parsers/vmalloc.py @@ -1,4 +1,4 @@ -# Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. +# Copyright (c) 2012-2014, The Linux Foundation. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 and @@ -96,10 +96,7 @@ class Vmalloc(RamParser): vmlist = self.ramdump.read_word('vmap_area_list') orig_vmlist = vmlist - list_next_offset, list_prev_offset = llist.get_list_offsets( - self.ramdump) - - list_walker = llist.ListWalker(self.ramdump, vmlist, next_offset, list_next_offset, list_prev_offset) + list_walker = llist.ListWalker(self.ramdump, vmlist, next_offset) self.vmalloc_out = vmalloc_out list_walker.walk(vmlist, self.list_func) print_out_str('---wrote vmalloc to vmalloc.txt') -- GitLab