From 7c929ad35afcb29da8d13e0218df9af3b73b9646 Mon Sep 17 00:00:00 2001 From: Larry Ruckman Date: Thu, 30 Jan 2025 12:23:51 -0800 Subject: [PATCH] git hash leading zero bug fix --- python/surf/axi/_AxiVersion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/surf/axi/_AxiVersion.py b/python/surf/axi/_AxiVersion.py index 79f2f11379..e62b33ad18 100644 --- a/python/surf/axi/_AxiVersion.py +++ b/python/surf/axi/_AxiVersion.py @@ -281,7 +281,7 @@ def printStatus(self): print("FwVersion = {}".format(hex(self.FpgaVersion.get()))) print("UpTime = {}".format(self.UpTime.get())) if (gitHash != 0): - print("GitHash = {}".format(hex(self.GitHash.get()))) + print("GitHash = {:040x}".format(self.GitHash.get())) else: print("GitHash = dirty (uncommitted code)") print("XilinxDnaId = {}".format(hex(self.DeviceDna.get())))