From 34198b801ebca69fba654c8d1e011acea45b778c Mon Sep 17 00:00:00 2001 From: Mengdong Lin Date: Sun, 18 Aug 2013 20:36:03 -0400 Subject: 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 Signed-off-by: Mengdong Lin --- tools/quick_dump/quick_dump.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/quick_dump/quick_dump.py b/tools/quick_dump/quick_dump.py index 8fdd1693..cbc10268 100755 --- a/tools/quick_dump/quick_dump.py +++ b/tools/quick_dump/quick_dump.py @@ -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() -- cgit v1.2.3