mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-08 16:36:14 +00:00
quick_dump/bdw: use hex() to convert devid to hex string in error message
This patch is to avoid the error on device auto-detection failure "TypeError: Can't convert 'int' object to str implicitly". Reviewed-by: Ben Widawsky <ben@bwidawsk.net> Signed-off-by: Mengdong Lin <mengdong.lin@intel.com>
This commit is contained in:
parent
b70d4c9e68
commit
34198b801e
@ -62,7 +62,7 @@ if args.autodetect:
|
||||
elif chipset.is_haswell(devid):
|
||||
args.profile = open('haswell', 'r')
|
||||
else:
|
||||
print("Autodetect of %x " + devid + " failed")
|
||||
print("Autodetect of devid " + hex(devid) + " failed")
|
||||
|
||||
if args.profile == None:
|
||||
sys.exit()
|
||||
|
Loading…
x
Reference in New Issue
Block a user