summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPetri Latvala <petri.latvala@intel.com>2020-06-10 13:33:56 +0300
committerPetri Latvala <petri.latvala@intel.com>2020-06-10 18:05:44 +0300
commitd16ad07e7f2a028e14d61f570931c87fa5ce404c (patch)
tree9ea6d0828ef768720fae0bc339f235a5b9f0c4a8 /lib
parent0b907087168c13b9bf2ee974020381bba6419d40 (diff)
lib/drmtest: Don't write ffffffff to a numeric param
__cancel_work_at_exit writes -1 to param "reset", with the intention that it's "any available method". Hex values to numeric params should be prefixed with 0x to be parsed as a number. Use the convention of %u with -1 as is used elsewhere with the "reset" param. Signed-off-by: Petri Latvala <petri.latvala@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib')
-rw-r--r--lib/drmtest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/drmtest.c b/lib/drmtest.c
index e4e710d48..c732d1dda 100644
--- a/lib/drmtest.c
+++ b/lib/drmtest.c
@@ -478,7 +478,7 @@ static void __cancel_work_at_exit(int fd)
{
igt_terminate_spins(); /* for older kernels */
- igt_params_set(fd, "reset", "%x", -1u /* any method */);
+ igt_params_set(fd, "reset", "%u", -1u /* any method */);
igt_drop_caches_set(fd,
/* cancel everything */
DROP_RESET_ACTIVE | DROP_RESET_SEQNO |