> -----Original Message-----
> From: De Lara Guarch, Pablo [mailto:[email protected]]
> Sent: Wednesday, February 14, 2018 12:19 AM
> To: Thomas Monjalon <[email protected]>; Matan Azrad
> <[email protected]>
> Cc: [email protected]; [email protected]
> Subject: RE: [dpdk-dev] [PATCH v2] net/failsafe: fix FreeBSD build
>
>
>
> > -----Original Message-----
> > From: dev [mailto:[email protected]] On Behalf Of Thomas Monjalon
> > Sent: Tuesday, February 13, 2018 10:13 PM
> > To: [email protected]
> > Cc: [email protected]; [email protected]
> > Subject: [dpdk-dev] [PATCH v2] net/failsafe: fix FreeBSD build
> >
> > The type pthread_t is not portable because it is freely defined.
> > On Linux, it is an unsigned long int which can be printed with %l.
> > On FreeBSD, it is a pointer which can be printed with %p.
> >
> > That's why there was this error:
> > drivers/net/failsafe/failsafe_private.h:377:53: error:
> > format specifies type 'unsigned long' but the argument has
> > type 'pthread_t' (aka 'struct pthread *')
> >
> > Fixes: 655fcd68c7d2 ("net/failsafe: fix hotplug races")
> >
> > Reported-by: Pablo de Lara <[email protected]>
> > Signed-off-by: Thomas Monjalon <[email protected]>
>
> Tested-by: Pablo de Lara <[email protected]>
>
Acked-by: Matan Azrad <[email protected]>