mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-12 10:26:12 +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) {
|
long_options, &option_index)) != -1) {
|
||||||
switch(c) {
|
switch(c) {
|
||||||
case 'd':
|
case 'd':
|
||||||
devid = atoi(optarg);
|
devid = strtoul(optarg, NULL, 0);
|
||||||
break;
|
break;
|
||||||
case 'b':
|
case 'b':
|
||||||
binary = 1;
|
binary = 1;
|
||||||
@ -178,7 +178,6 @@ main (int argc, char *argv[])
|
|||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
for (i = optind; i < argc; i++) {
|
for (i = optind; i < argc; i++) {
|
||||||
if (binary == 1)
|
if (binary == 1)
|
||||||
read_bin_file(devid, argv[i]);
|
read_bin_file(devid, argv[i]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user