From 3d340c30517b90853318fe60ec239bf2bf789931 Mon Sep 17 00:00:00 2001 From: Anoop C S Date: Tue, 28 Aug 2018 22:11:31 +0530 Subject: tests: Fix -Wformat gcc warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit test_fork_thread_deadlock.c:48:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘pid_t {aka long int}’ [-Wformat=] Signed-off-by: Anoop C S Reviewed-by: Andreas Schneider Reviewed-by: Ralph Boehme --- tests/test_fork_thread_deadlock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_fork_thread_deadlock.c') diff --git a/tests/test_fork_thread_deadlock.c b/tests/test_fork_thread_deadlock.c index 6cd1ca0..7d4d4a7 100644 --- a/tests/test_fork_thread_deadlock.c +++ b/tests/test_fork_thread_deadlock.c @@ -45,7 +45,7 @@ static void test_swrap_signal_handler(int signum) { - fprintf(stderr, "PID: %d, SIGNUM: %d\n", getpid(), signum); + fprintf(stderr, "PID: %u, SIGNUM: %d\n", (unsigned int)getpid(), signum); write(1, "DEADLOCK?\n", 10); } -- cgit