You only need to specify the name of the device. The character or block
device was never necessary to show the registers since we're opening the
sysfs resource entry. This is backwards compatibles with the old way as
the basename was stripped from the path before.
Signed-off-by: Keith Busch <keith.busch@intel.com>
while ((opt = getopt_long(argc, (char **)argv, "", NULL,
&long_index)) != -1);
- get_dev(argc, argv);
+ devicename = basename(argv[optind]);
get_registers(&bar);
printf("cap : ");