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 <anoopcs@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
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);
}