From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] ethdev: report error on name truncation Date: Mon, 07 Jan 2019 15:50:16 +0100 Message-ID: <4204389.yEGWC8VWic@xps> References: <20190107143951.30076-1-ndabilpuram@marvell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: Ferruh Yigit , Andrew Rybchenko , "dev@dpdk.org" , Jerin Jacob Kollanukkaran To: Nithin Kumar Dabilpuram Return-path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id D6E611B453 for ; Mon, 7 Jan 2019 15:50:21 +0100 (CET) In-Reply-To: <20190107143951.30076-1-ndabilpuram@marvell.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi, Please provide an explanation of the current behaviour. 07/01/2019 15:40, Nithin Kumar Dabilpuram: > - snprintf(z_name, sizeof(z_name), "eth_p%d_q%d_%s", > - dev->data->port_id, queue_id, ring_name); > + rc = snprintf(z_name, sizeof(z_name), "%s_%s_%d_%d", > + dev->device->driver->name, ring_name, > + dev->data->port_id, queue_id); You should keep the same name format. Please check this commit: http://git.dpdk.org/dpdk/commit/?id=5e046832