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:
Mengdong Lin 2013-08-18 20:36:03 -04:00 committed by Ben Widawsky
parent b70d4c9e68
commit 34198b801e

View File

@ -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()