Skip to content
Snippets Groups Projects
Commit 9ed9140d authored by Monu Surana's avatar Monu Surana
Browse files

linux-ramdump-parser-v2: Handling error conditions in RTB logs

Handling few more error conditions while printing physical
addresses in RTB logs

Change-Id: Idfb75f4ed048d22dd3d8a6c69cd1e9187c9c94c2
parent eadc1453
No related branches found
No related tags found
No related merge requests found
# Copyright (c) 2012-2014, The Linux Foundation. All rights reserved. # Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
# #
# This program is free software; you can redistribute it and/or modify # 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 # it under the terms of the GNU General Public License version 2 and
...@@ -68,7 +68,11 @@ class RTB(RamParser): ...@@ -68,7 +68,11 @@ class RTB(RamParser):
def print_readlwritel(self, rtbout, rtb_ptr, logtype): def print_readlwritel(self, rtbout, rtb_ptr, logtype):
data = self.ramdump.read_structure_field(rtb_ptr, 'struct msm_rtb_layout', 'data') data = self.ramdump.read_structure_field(rtb_ptr, 'struct msm_rtb_layout', 'data')
physical = self.ramdump.virt_to_phys(data) try:
physical = self.ramdump.virt_to_phys(data)
except:
physical = None
if physical is None: if physical is None:
physical = "no translation found" physical = "no translation found"
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment