From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by dpdk.org (Postfix) with ESMTP id DCFB21B2B2 for ; Tue, 13 Feb 2018 22:21:42 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 6C90721477; Tue, 13 Feb 2018 16:21:42 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Tue, 13 Feb 2018 16:21:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=mesmtp; bh=B0aMezzUWMH1PFAZsXjGfG2LQQ 0dnl2yvzCfxJIko2k=; b=otgqiPkNQJ61RVENvTMln3ssQLCZ3GLQNNTPpw8zLQ 461m4jBYvMXBh28X3kTDEjIpwKX7otcNFB7YJBzWD23WxLMWhjdnPZq0laWkX3XM 2ljiGGUiahnxbQz21zi+q73Bbvz4ufCMXE2T4mOqGXlbj/DlqyyTKGRDTS2AXKhN s= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=B0aMez zUWMH1PFAZsXjGfG2LQQ0dnl2yvzCfxJIko2k=; b=Qxa3+SLeHzs1LlQgC5ior8 RscGyx6ke4nB9/3Y1Na6Ou828jZVPwYT+Tql+71gvSTToQSj5jJYz0RA4vLQeOeM eZmhfy0B8pvsTDsBDQDuJQp9RhrjD6aIBtAhHCutE/7Ur5qv4YIWI18B/eNM8WX1 Q4yzL6d9bahySY+9Ueu6pg9YlkBV2/Vxct4ro/GJ++l8pk7+u9p8sJ8Tg+cvCmh7 D9dQqaQCoNu2xqXdFgPKRkalc8vOCy5ZTcSAqIRtZ/dJl8+Yfby0tlW8gyw30DD/ tuPbS5qpI+iBKAQ9yWWIY8/hmX7PEQa0Mi2Nq50iZSw9jocVhOEqewIzIKVj9Lwg == X-ME-Sender: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 1ED207E4E9; Tue, 13 Feb 2018 16:21:42 -0500 (EST) From: Thomas Monjalon To: Matan Azrad Cc: "De Lara Guarch, Pablo" , "dev@dpdk.org" , =?ISO-8859-1?Q?Ga=EBtan?= Rivet Date: Tue, 13 Feb 2018 22:21:32 +0100 Message-ID: <4199780.l4afLUpUQf@xps> In-Reply-To: References: <1518369872-12324-1-git-send-email-matan@mellanox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v7 0/3] failsafe: fix hotplug races X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Feb 2018 21:21:43 -0000 13/02/2018 22:13, Matan Azrad: > From: De Lara Guarch, Pablo [mailto:pablo.de.lara.guarch@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.