From 82fcb90619491af13675d8c08e5d1b6bf07a781b Mon Sep 17 00:00:00 2001 From: Imre Deak Date: Mon, 2 Jun 2014 15:48:27 +0300 Subject: [PATCH] quick_dump: allow passing display base as the third argument MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Ville Syrjälä Reviewed-by: Imre Deak --- tools/quick_dump/quick_dump.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/quick_dump/quick_dump.py b/tools/quick_dump/quick_dump.py index a3bd842..41bdc0a 100755 --- a/tools/quick_dump/quick_dump.py +++ b/tools/quick_dump/quick_dump.py @@ -42,6 +42,8 @@ def parse_file(file): elif register[2] == 'DPIO': val = reg.dpio_read(intreg, 0) else: + if register[2] != '': + intreg = intreg + int(register[2], 16) val = reg.read(intreg) print('{0:#010x} | {1:<28} | {2:#010x}'.format(intreg, register[0], val)) print('') -- 2.7.4