From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from fritzc.com ([2a01:4f8:d12:2c5::2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wjsc4-0006s0-Ra for barebox@lists.infradead.org; Mon, 12 May 2014 15:58:01 +0000 Received: from anon-35-210.vpn.ipredator.se ([46.246.35.210]) by fritzc.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1Wjsbd-00052r-VJ for barebox@lists.infradead.org; Mon, 12 May 2014 17:57:34 +0200 From: Christoph Fritz Date: Mon, 12 May 2014 17:57:32 +0200 Message-ID: <1399910252.4918.8.camel@mars> Mime-Version: 1.0 Reply-To: chf@fritzc.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH] common: fix macro WARN To: barebox@lists.infradead.org Signed-off-by: Christoph Fritz --- include/common.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/common.h b/include/common.h index bfd3ce8..e7ab5fe 100644 --- a/include/common.h +++ b/include/common.h @@ -72,10 +72,11 @@ #ifndef WARN #define WARN(condition, format...) ({ \ int __ret_warn_on = !!(condition); \ - if (unlikely(__ret_warn_on)) \ + if (unlikely(__ret_warn_on)) { \ __WARN(); \ puts("WARNING: "); \ printf(format); \ + } \ unlikely(__ret_warn_on); \ }) #endif -- 1.7.10.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox