mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-11 01:46:14 +00:00
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:
parent
73c2104070
commit
f312f89f4a
@ -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]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user