From 760106abf8f0ab8683fd61c858f1fb77686e5405 Mon Sep 17 00:00:00 2001 From: Petri Latvala Date: Tue, 27 Nov 2018 12:58:16 +0200 Subject: runner: Use %lx for printing unsigned longs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ../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 Cc: Chris Wilson Reviewed-by: Chris Wilson --- runner/executor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runner') 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); -- cgit v1.2.3