diff options
author | Mengdong Lin <mengdong.lin@intel.com> | 2013-08-18 20:36:03 -0400 |
---|---|---|
committer | Ben Widawsky <benjamin.widawsky@intel.com> | 2013-08-19 10:14:01 -0700 |
commit | 34198b801ebca69fba654c8d1e011acea45b778c (patch) | |
tree | 27568421f91f630c1a5c67285cd038ed3152f169 /tools | |
parent | b70d4c9e6824d648c34ffbd9993aa3e0dd482ac8 (diff) |
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>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/quick_dump/quick_dump.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |