From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-f176.google.com (mail-we0-f176.google.com [74.125.82.176]) by dpdk.org (Postfix) with ESMTP id 4B9ADB47E for ; Fri, 20 Feb 2015 14:12:58 +0100 (CET) Received: by wesw55 with SMTP id w55so5570604wes.4 for ; Fri, 20 Feb 2015 05:12:58 -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:in-reply-to:references; bh=LOncQpMATyTXWeQ+3FPE0vymbv09O2JYG9BgBrCJdlU=; b=bWlu3NAN/zOsEbLL647+nWk4fYLNebJvLWzChzzxdOMgO96ZVPmLll0sloTDMgHH3F vcH7Fu6LXR5+2dTlHy0zVeitbQNl3d5REtvy3/zOtRZAT93VL3LNIL7QwaYIuA4MQf44 kL7ZhsvcVvmi5/VnS5bNC/VvcSLdMD9vcRSmee5AiBDOybu+EeRT2mg0ndpH4z85wTEk Qtd0HgAjoWsfURM8Nf850nlQQ7MS17QwkSsNR9u2uxatCpv0caTIA7CHOKyL33afzmNl J1NsUE6qwzS+N53y3+G5qKK63980UIB5F4KkT3E6XdstiJ/NhUbhQB0/2NEFFmuiDAWh TU4A== X-Received: by 10.180.184.230 with SMTP id ex6mr13115566wic.73.1424437976689; Fri, 20 Feb 2015 05:12:56 -0800 (PST) Received: from spuiu-vm.anuesystems.local ([109.100.41.154]) by mx.google.com with ESMTPSA id fd10sm2368222wib.4.2015.02.20.05.12.54 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 20 Feb 2015 05:12:55 -0800 (PST) From: Stefan Puiu To: dev@dpdk.org Date: Fri, 20 Feb 2015 15:23:25 +0200 Message-Id: <1424438606-1130-1-git-send-email-stefan.puiu@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: Cc: Stefan Puiu Subject: [dpdk-dev] [PATCH 1/2] rte_pci.h: Fix C++11 compilation 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: Fri, 20 Feb 2015 13:12:58 -0000 From: Stefan Puiu In C++11 concatenated string literals need to have a space in between. Found with clang++-3.4, IIRC g++-4.8 also complains about this. 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