From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by dpdk.org (Postfix) with ESMTP id B55A71B1C9 for ; Fri, 26 Jan 2018 14:13:48 +0100 (CET) Received: by mail-wm0-f68.google.com with SMTP id f3so21156749wmc.1 for ; Fri, 26 Jan 2018 05:13:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NiJTMNbg7s24W+fdA2VbF5i2RdJX4Q2w5cCs8/Ly4mw=; b=pJ4iz6OCI+JadHmFXDa9y1uWSYblwCMi407VC69zl5WY96HbHuxnFdRGp64865qVZ4 ASMmYsIqiHJZVVzTJ4tGeZ2jsGGhHWHVj7b1+LK+HslYGx3FoyU6PGI7ko23RXSEYuU+ YD2uy9uRjAYZPzHeVsdUdo0FNxqdIonq14o3TnXr2DSvRRBCO0F4dsL2Gx1Sta3faFEq TinmQ9AG04HnVyEPTypH6sehjO4qkQKk1R0WYIJw6l9ECmE2QYCgmp+QQCCVmp7ImMv+ Vyaw0Qtm9dTgB99rK9OTjEBqB+8/SIIFu+ZKZ6q0UB2xAXaLAUselvjXiC6Fwg1uWZkf Z1Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=NiJTMNbg7s24W+fdA2VbF5i2RdJX4Q2w5cCs8/Ly4mw=; b=A9QR9t7CLc74rNXcVlB7wSqHIFv7JShVzWW1KijOAkq9N+XF13fwIx8NsbLPFZa5NH v0gNN5WZ4D76FaPbnxT0Ym5hNFW4QDpyyOEQNznoeAD5YLZ9XJctYRD3tWZan2QXvamU pBr/USSnYihu3BzaQyWZhB5k1Wasl9TSZ7j9IEfhZ9ENko43VkQJwbS7q71IpT7aZfmO K0IFj3c4Vf8EEy9yUUKoi+hhKuYjJMTbQcrurz+F/RmSrOsjH595zNtO7PCO6GqPRH/q xCdGyU0X6bkAKKthX9WpztLJZS5tuXM7BSAcho23AdXidxRyD1TiQLN8kMhttUs4sNWK AAOQ== X-Gm-Message-State: AKwxytcpL8jQb/oihBryWBZj8129ymZlTC+eJ9VI1MkIA1x3sRcF0gJQ C7ieNeiyLqp7cB/eYnwz5ToxguRE X-Google-Smtp-Source: AH8x226coReKQ0FoXXpaM/8hVLs6MCrgmHaP55uJmdJq5s/5D4GLE8Uq1hKNXf7TrbUvhenPJ7ZT8A== X-Received: by 10.28.153.147 with SMTP id b141mr2082683wme.47.1516972428458; Fri, 26 Jan 2018 05:13:48 -0800 (PST) Received: from localhost ([2a00:23c5:bef3:400:9531:588b:44ae:bec4]) by smtp.gmail.com with ESMTPSA id 186sm4523036wmu.16.2018.01.26.05.13.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 26 Jan 2018 05:13:47 -0800 (PST) From: luca.boccassi@gmail.com To: "Ilya V. Matveychikov" Cc: Ferruh Yigit , dpdk stable Date: Fri, 26 Jan 2018 13:12:32 +0000 Message-Id: <20180126131332.15346-2-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180126131332.15346-1-luca.boccassi@gmail.com> References: <20180126131332.15346-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'eal: update assertion macro' has been queued to LTS release 16.11.5 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jan 2018 13:13:48 -0000 Hi, FYI, your patch has been queued to LTS release 16.11.5 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 01/28/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From 32bc7f113fa1b1d271eca59694257d4e522ff370 Mon Sep 17 00:00:00 2001 From: "Ilya V. Matveychikov" Date: Sun, 19 Nov 2017 12:18:49 +0400 Subject: [PATCH] eal: update assertion macro MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [ upstream commit 65f88eb2842649e442e781d58a0228b3e8970e45 ] Update RTE_VERIFY macro to make it possible to use complex expressions in RTE_ASSERT. Now it’s possible to have % char inside the expression, for example: RTE_ASSERT((sizeof(some_struct) % 64) == 0) Before the patch, “%" sign acts like a conversion specification beginning character. Fixes: 148f963fb532 ("xen: core library changes") Signed-off-by: Ilya V. Matveychikov Reviewed-by: Ferruh Yigit --- lib/librte_eal/common/include/rte_debug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/common/include/rte_debug.h b/lib/librte_eal/common/include/rte_debug.h index cab6fb4c9..ec1dce037 100644 --- a/lib/librte_eal/common/include/rte_debug.h +++ b/lib/librte_eal/common/include/rte_debug.h @@ -86,7 +86,7 @@ void rte_dump_registers(void); #endif #define RTE_VERIFY(exp) do { \ if (unlikely(!(exp))) \ - rte_panic("line %d\tassert \"" #exp "\" failed\n", __LINE__); \ + rte_panic("line %d\tassert \"%s\" failed\n", __LINE__, #exp); \ } while (0) /* -- 2.14.2