tools/intel_dump_decode: make devid parsing more useful

We use hex for these!

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter 2011-10-17 19:41:42 +02:00
parent 73c2104070
commit f312f89f4a

View File

@ -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]);