tests/amdgpu: Fix device_id option
authorTom St Denis <tom.stdenis@amd.com>
Mon, 5 Jun 2017 18:04:11 +0000 (14:04 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 6 Jun 2017 16:14:13 +0000 (12:14 -0400)
commitb6f450e065a538d566c71872ce890ff07956e3eb
tree7e801e0c4205031debcb96d58b646f2dca85b140
parent16444e1061a2dcc80cdc80d64b6ae9ef2deee5fe
tests/amdgpu: Fix device_id option

The device_id option [-d] was badly broken.  This commit fixes
the width (was 8 is now 16 bits) as well as enables searches
without specifying a bus id.  It was also comparing "dev" from
the bus field which is not the PCI device id.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
tests/amdgpu/amdgpu_test.c