net/failsafe: fix FreeBSD build
authorThomas Monjalon <thomas@monjalon.net>
Tue, 13 Feb 2018 21:23:35 +0000 (22:23 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 13 Feb 2018 22:21:33 +0000 (23:21 +0100)
commit3344fb8fa4dd285647730fb3d8eba9ea12ca2d79
tree9fe1807debb7995e6a3ca45ecd2edc07d2e542c7
parenteae6e70cea2fd62a7ab2b3a6693d015e9d3d7fcc
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 <pablo.de.lara.guarch@intel.com>
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Tested-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/net/failsafe/failsafe_private.h