From patchwork Thu Mar 26 16:43:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 46371 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7832121584 for ; Thu, 26 Mar 2015 16:44:07 +0000 (UTC) Received: by wixm2 with SMTP id m2sf430810wix.0 for ; Thu, 26 Mar 2015 09:44:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:cc:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=ga+FMBSr3PGNBjDdIiqpIp1AoReF1Jb+dWm5GANAH00=; b=f5UyFE6JiCuwKmPdtOu89LVxXTjMeEUcYNHFZoqlJVGCSl+jD8XGTcLDLRxQ6cHMJi qFMIJZDlLjlqofuitFTQRLO4Qx6odKcgcWj5rnVKorz3JEOBr0lRaqTuOUsdVRJnQjMq v18vUP8KdUqolLxq9dS+3S568N6Uks00NeNjaanxnvPuky9M8yHKzL1lEoKOhdGMAeOU NySDf2J80rywV/GsVRUsFQsHuf7WEz/vWkrN35dHyg3pZhewUZ8xPkRwOyv6by9WxO4C 2u9aVn4opiYYVccudI+LfXDwfCBJ3Z7a9Q3MYUVqD37NWIStdJ7dujaoDjBUZegU8jOX dwiA== X-Gm-Message-State: ALoCoQkHDB3cZc+8POOcakVLiUpab8+aT0taKRWsNizJOSG1sxKkG3F3w+Z4MGJToC5YXRqD6SPT X-Received: by 10.152.27.134 with SMTP id t6mr3585373lag.5.1427388246736; Thu, 26 Mar 2015 09:44:06 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.115.166 with SMTP id jp6ls295529lab.101.gmail; Thu, 26 Mar 2015 09:44:06 -0700 (PDT) X-Received: by 10.112.89.71 with SMTP id bm7mr14261724lbb.20.1427388246444; Thu, 26 Mar 2015 09:44:06 -0700 (PDT) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com. [209.85.217.177]) by mx.google.com with ESMTPS id p3si4983039lae.151.2015.03.26.09.44.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Mar 2015 09:44:06 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) client-ip=209.85.217.177; Received: by lbcgn8 with SMTP id gn8so45189759lbc.2 for ; Thu, 26 Mar 2015 09:44:06 -0700 (PDT) X-Received: by 10.112.185.66 with SMTP id fa2mr13810772lbc.117.1427388246303; Thu, 26 Mar 2015 09:44:06 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.57.201 with SMTP id k9csp726782lbq; Thu, 26 Mar 2015 09:44:05 -0700 (PDT) X-Received: by 10.52.107.129 with SMTP id hc1mr11509129vdb.41.1427388245002; Thu, 26 Mar 2015 09:44:05 -0700 (PDT) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id sd2si7750868vdc.12.2015.03.26.09.44.03 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 26 Mar 2015 09:44:04 -0700 (PDT) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YbAsz-0000VD-3Z; Thu, 26 Mar 2015 16:44:01 +0000 Received: from mail-qg0-f44.google.com ([209.85.192.44]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YbAst-0000V2-8H for lng-odp@lists.linaro.org; Thu, 26 Mar 2015 16:43:55 +0000 Received: by qgf60 with SMTP id 60so88636984qgf.3 for ; Thu, 26 Mar 2015 09:43:50 -0700 (PDT) X-Received: by 10.55.20.40 with SMTP id e40mr30011723qkh.33.1427388213149; Thu, 26 Mar 2015 09:43:33 -0700 (PDT) Received: from mike-desktop.?.holmesfamily.ws (c-98-221-136-245.hsd1.nj.comcast.net. [98.221.136.245]) by mx.google.com with ESMTPSA id 7sm3766944qhv.8.2015.03.26.09.43.32 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Mar 2015 09:43:32 -0700 (PDT) From: Mike Holmes To: ola.liljedahl@linaro.org Date: Thu, 26 Mar 2015 12:43:25 -0400 Message-Id: <1427388206-4028-1-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.1.0 X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCH 1/2] linux-generic: debug_internal: assert prints condition X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: mike.holmes@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Signed-off-by: Mike Holmes Reviewed-by: Bill Fischofer --- platform/linux-generic/include/odp_debug_internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/linux-generic/include/odp_debug_internal.h b/platform/linux-generic/include/odp_debug_internal.h index 5e38772..24608e1 100644 --- a/platform/linux-generic/include/odp_debug_internal.h +++ b/platform/linux-generic/include/odp_debug_internal.h @@ -31,9 +31,9 @@ extern "C" { /** * Runtime assertion-macro - aborts if 'cond' is false. */ -#define ODP_ASSERT(cond, msg) \ +#define ODP_ASSERT(cond) \ do { if ((ODP_DEBUG == 1) && (!(cond))) { \ - ODP_ERR("%s\n", msg); \ + ODP_ERR("%s\n", #cond); \ odp_global_data.abort_fn(); } \ } while (0)