[igt-dev] [PATCH i-g-t 1/3] i915/gem_ctx_persistence: Use "%u" for -1u conversion

Chris Wilson chris at chris-wilson.co.uk
Tue May 19 06:34:09 UTC 2020


The debugfs modparams are more picky and refuse to do the implicit
unsigned conversion.

Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
 tests/i915/gem_ctx_persistence.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/i915/gem_ctx_persistence.c b/tests/i915/gem_ctx_persistence.c
index ce9f02350..4a1ef0f27 100644
--- a/tests/i915/gem_ctx_persistence.c
+++ b/tests/i915/gem_ctx_persistence.c
@@ -1127,7 +1127,7 @@ igt_main
 		igt_require_gem(i915);
 
 		/* Restore the reset modparam if left clobbered */
-		igt_assert(igt_params_set(i915, "reset", "%d", -1));
+		igt_assert(igt_params_set(i915, "reset", "%u", -1));
 
 		enable_hangcheck(i915);
 		igt_install_exit_handler(exit_handler);
-- 
2.26.2



More information about the igt-dev mailing list