summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2011-10-17 19:41:42 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2011-10-17 19:41:42 +0200
commitf312f89f4ae65ee969ec30657724b1fd5a1ebd44 (patch)
tree5099c41e0f261af55539c31679790890b086b0a2
parent73c2104070fc0e2cd8230075a75eed3a214bba06 (diff)
tools/intel_dump_decode: make devid parsing more useful
We use hex for these! Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--tools/intel_dump_decode.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/intel_dump_decode.c b/tools/intel_dump_decode.c
index 39d8b4f4..012c9441 100644
--- a/tools/intel_dump_decode.c
+++ b/tools/intel_dump_decode.c
@@ -159,7 +159,7 @@ main (int argc, char *argv[])
long_options, &option_index)) != -1) {
switch(c) {
case 'd':
- devid = atoi(optarg);
+ devid = strtoul(optarg, NULL, 0);
break;
case 'b':
binary = 1;
@@ -178,7 +178,6 @@ main (int argc, char *argv[])
exit(-1);
}
-
for (i = optind; i < argc; i++) {
if (binary == 1)
read_bin_file(devid, argv[i]);