From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f42.google.com (mail-pg0-f42.google.com [74.125.83.42]) by dpdk.org (Postfix) with ESMTP id 3FEE51B199 for ; Thu, 30 Nov 2017 22:55:59 +0100 (CET) Received: by mail-pg0-f42.google.com with SMTP id w7so3566342pgv.6 for ; Thu, 30 Nov 2017 13:55:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=j52GDbIqLDDwZqHqX679sJ7kP7km8oNQcRLUBnGBquI=; b=t+8EbsCI48LptvjPgHUr2HHiyF5+L9WyrgeZynUdsYBBYyJ+HppGB3gORczUWNJ3AC rAXzRJsCTFR0R8bdiPFRv9Rj5vuwtbBV3ti1gc2qKTtd2on7CTGdzLVQ1hDMbS5DxEGz 7MgYJvQzYCkLwjela0s+etjQLsyuUyDbyrIP4bUcLYi7jQjUA9fX+ReJyEI6qu6xqKgX 8JlWmuzoeoD1OENTjROJkvYG0/wSIXanDyu97jiaifGT1cc5b+gdTsFvOEdHLBwPX9Ip Io/+MeK4RAQrnCp3kl6DO4rq0T6zO6TXiRbmPRL18CIJigB/7R9oxydTvv58Od2OoeN7 D/Jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=j52GDbIqLDDwZqHqX679sJ7kP7km8oNQcRLUBnGBquI=; b=gst7H37pbKwkDzZ4cPwjl7uRPMtVOME9z86eWMX0znegZ7qc5EMBfVTu0oRPWd1qEq BXBx0zPad+3f6QoAErPGY6BfVSm6AQ43SYMGTA8vD4DPhRKwoEj0ntUM7vZ2l6tHdD/w 3P6b3KXIPKSREQbcPOFtlzWPGLJPUqp2TP8irvw2PoNOdKKKTr12QKu88yX2RRC6QYCh kdRCqkv60we+y2mqEegWAg/VdcWd4Gywi30pU+13ORIXvReC9lGiOHg2jNZbka+ELFWb 1dSq1iuWPmGz7YBR9y0Y7gyui8MwcWQbAWG8NSyxWIoypo4POXMRG0yzkJkYQDZl0LSQ zWmA== X-Gm-Message-State: AJaThX6FTetllqS7mwxZH/6nOz9BVOcwx9higdLjk1sozQoF0nrKo6R5 uxRNNw90gxYHlbbGQC/VuGKXyfqh3gM= X-Google-Smtp-Source: AGs4zMYkzlilNdwLV6XjXlHKCpms7L3eOll/NNiMMVZXkBa2o4+ElHdGJyckByAFhV4Eq/6luwN6bA== X-Received: by 10.99.106.138 with SMTP id f132mr3680689pgc.115.1512078958378; Thu, 30 Nov 2017 13:55:58 -0800 (PST) Received: from xeon-e3 (76-14-207-240.or.wavecable.com. [76.14.207.240]) by smtp.gmail.com with ESMTPSA id r9sm7643220pgp.93.2017.11.30.13.55.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 30 Nov 2017 13:55:58 -0800 (PST) Date: Thu, 30 Nov 2017 13:55:51 -0800 From: Stephen Hemminger To: Thomas Monjalon Cc: dev@dpdk.org Message-ID: <20171130135551.458330e2@xeon-e3> In-Reply-To: <20171130214720.30098-1-thomas@monjalon.net> References: <20171130214720.30098-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] eal/x86: get hypervisor name 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: Thu, 30 Nov 2017 21:55:59 -0000 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.