From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] eal/x86: get hypervisor name Date: Thu, 30 Nov 2017 23:03:57 +0100 Message-ID: <2407814.uAEd4ZzsLf@xps> References: <20171130214720.30098-1-thomas@monjalon.net> <20171130135551.458330e2@xeon-e3> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Stephen Hemminger Return-path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id DAA081AEF4 for ; Thu, 30 Nov 2017 23:03:58 +0100 (CET) In-Reply-To: <20171130135551.458330e2@xeon-e3> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 30/11/2017 22:55, Stephen Hemminger: > On Thu, 30 Nov 2017 22:47:20 +0100 > Thomas Monjalon wrote: > > > + for (int reg = 1; reg < 4; reg++) > > + memcpy(name + (reg - 1) * 4, ®s[reg], 4); > > + name[12] = '\0'; > > C99 style declarations are not generally used in DPDK. True :) It will be fixed in v2. I think I should add a log somewhere at initialization in order to test this function. Do you think it deserves a table of name strings in the .h?