Skip to content
Snippets Groups Projects
Commit 327c8102 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

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

parents eadc1453 9ed9140d
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
# it under the terms of the GNU General Public License version 2 and
......@@ -68,7 +68,11 @@ class RTB(RamParser):
def print_readlwritel(self, rtbout, rtb_ptr, logtype):
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:
physical = "no translation found"
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