From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by dpdk.org (Postfix) with ESMTP id 3F503B661 for ; Thu, 19 Feb 2015 21:48:55 +0100 (CET) Received: by mail-wi0-f178.google.com with SMTP id em10so11923671wid.5 for ; Thu, 19 Feb 2015 12:48:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=T0l2YpXIFtoIbn3fF/zYsJZZ6TDq3sZUmkli06/cwW8=; b=RtsxJwDvo14A/urTy4yoYtkeU21rxbIDIJwlmix/fIxgTp2V68TmGnQCvD9I6ixj2f 2IvLOuhiWkFV0ggFpS4gYceGH8fRI2XB9l8nkLg6Fn3IW1DsSju5Jwsj/qOaTRJgUrdy IVq7paOUSnZUrOoRyRoHBLUBsJXtq8KBHz+pt+hep8mgqEYGME4U6VAHZ+mOvjldYReC UmjWFkuY1kukqaEeI7W/pOTIFQ58G0MD8Ylyjew3jvRTn6/uPhyjOxQyoG3N8OB0bUOp kqZu4kMXgT9ZfQcYwqpMOzJZ3CQ2jGgSLWB/dxm7KhEA6LmHaNbGJ7Tf0xjUrSjubeI2 oEKA== X-Received: by 10.181.13.174 with SMTP id ez14mr10044127wid.72.1424378935085; Thu, 19 Feb 2015 12:48:55 -0800 (PST) Received: from spuiu-vm.anuesystems.local ([109.100.41.154]) by mx.google.com with ESMTPSA id vh8sm38981827wjc.12.2015.02.19.12.48.53 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 19 Feb 2015 12:48:54 -0800 (PST) From: Stefan Puiu To: dev@dpdk.org Date: Thu, 19 Feb 2015 22:59:28 +0200 Message-Id: <1424379569-15851-1-git-send-email-stefan.puiu@gmail.com> X-Mailer: git-send-email 1.7.9.5 Subject: [dpdk-dev] [PATCH] Fix C++11 compilation error with rte_pci.h X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Feb 2015 20:48:55 -0000 In C++11 concatenated string literals need to have a space in between. Found while trying to compile with clang++-3.4. Sample error message: dpdk/include/rte_pci.h:96:26: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] Signed-off-by: Stefan Puiu --- lib/librte_eal/common/include/rte_pci.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_eal/common/include/rte_pci.h b/lib/librte_eal/common/include/rte_pci.h index 66ed793..12ae5a7 100644 --- a/lib/librte_eal/common/include/rte_pci.h +++ b/lib/librte_eal/common/include/rte_pci.h @@ -93,10 +93,10 @@ extern struct pci_device_list pci_device_list; /**< Global list of PCI devices. #define SYSFS_PCI_DEVICES "/sys/bus/pci/devices" /** Formatting string for PCI device identifier: Ex: 0000:00:01.0 */ -#define PCI_PRI_FMT "%.4"PRIx16":%.2"PRIx8":%.2"PRIx8".%"PRIx8 +#define PCI_PRI_FMT "%.4" PRIx16 ":%.2" PRIx8 ":%.2" PRIx8 ".%" PRIx8 /** Short formatting string, without domain, for PCI device: Ex: 00:01.0 */ -#define PCI_SHORT_PRI_FMT "%.2"PRIx8":%.2"PRIx8".%"PRIx8 +#define PCI_SHORT_PRI_FMT "%.2" PRIx8 ":%.2" PRIx8 ".%" PRIx8 /** Nb. of values in PCI device identifier format string. */ #define PCI_FMT_NVAL 4 -- 1.7.9.5