13/02/2018 22:13, Matan Azrad: > From: De Lara Guarch, Pablo [mailto:pablo.de.lara.gua...@intel.com] > > There is a compilation error due to this patch on FreeBSD: > > > > drivers/net/failsafe/failsafe_private.h:377:53: error: format specifies type > > 'unsigned long' but the argument has type 'pthread_t' (aka 'struct pthread > > *') > > [-Werror,-Wformat] > > DEBUG("Hot-plug mutex was locked by thread %lu%s", pthread_self(), > > > > > > I am not sure how to print a pthread_t, so I can just report the issue. > > > Can you check with (unsigned long int) conversion?
On FreeBSD, pthread_t is: typedef struct pthread *pthread_t; pthread_t is not portable and should not be printed. I am preparing a patch to enable pthread_t debugging only in Linux.