From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] net/failsafe: fix FreeBSD build Date: Tue, 13 Feb 2018 22:39:25 +0100 Message-ID: <2411842.iNoccj3r1V@xps> References: <20180213213312.22225-1-thomas@monjalon.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, gaetan.rivet@6wind.com, Pablo de Lara To: matan@mellanox.com Return-path: Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by dpdk.org (Postfix) with ESMTP id AF52A1B346 for ; Tue, 13 Feb 2018 22:39:35 +0100 (CET) In-Reply-To: <20180213213312.22225-1-thomas@monjalon.net> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 13/02/2018 22:33, Thomas Monjalon: > 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. Forgot to add: On FreeBSD, it is a pointer. 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 *') Reported-by: Pablo de Lara > > The debug printing of the thread id is restricted to Linux only. > > Fixes: 655fcd68c7d2 ("net/failsafe: fix hotplug races") > > Signed-off-by: Thomas Monjalon