From 23e0cea58ba6ac5357db507b0ac7f8dfcf223326 Mon Sep 17 00:00:00 2001 From: Manel Caro Date: Wed, 4 Mar 2020 19:38:24 +0100 Subject: Modify typos --- test-cli/test/helpers/get_dieid.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test-cli/test/helpers/get_dieid.py b/test-cli/test/helpers/get_dieid.py index 029ddb5..48e724e 100644 --- a/test-cli/test/helpers/get_dieid.py +++ b/test-cli/test/helpers/get_dieid.py @@ -1,8 +1,11 @@ import mmap import os import struct + MAP_MASK = mmap.PAGESIZE - 1 WORD = 4 + + def read(addr): """ Read from any location in memory Returns the readed value in hexadecimal format @@ -30,8 +33,8 @@ def getRegisters(model): return registers def genDieid(modelid): - registers=getRegisters(modelid) - id="" + registers = getRegisters(modelid) + id = "" for i in range(len(registers)): id=id+(read(registers[i])) return id -- cgit v1.1