[igt-dev] [PATCH i-g-t] runner: Use %lx for printing unsigned longs

Petri Latvala petri.latvala at intel.com
Tue Nov 27 10:58:16 UTC 2018


../runner/executor.c:555:54: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
fprintf(stderr, "Child refuses to die, tainted %x. Aborting.\n",
                ~^

Fixes: a6b514d242bd ("runner: Be patient for processes to die")
Signed-off-by: Petri Latvala <petri.latvala at intel.com>
Cc: Chris Wilson <chris at chris-wilson.co.uk>
---
 runner/executor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/runner/executor.c b/runner/executor.c
index 62901d86..4a0a1219 100644
--- a/runner/executor.c
+++ b/runner/executor.c
@@ -552,7 +552,7 @@ static int monitor_output(pid_t child,
 
 				/* Nothing that can be done, really. Let's tell the caller we want to abort. */
 				if (settings->log_level >= LOG_LEVEL_NORMAL) {
-					fprintf(stderr, "Child refuses to die, tainted %x. Aborting.\n",
+					fprintf(stderr, "Child refuses to die, tainted %lx. Aborting.\n",
 						taints);
 				}
 				close_watchdogs(settings);
-- 
2.19.1



More information about the igt-dev mailing list