From patchwork Thu May 8 21:08:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 29860 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f70.google.com (mail-oa0-f70.google.com [209.85.219.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 21C4920534 for ; Thu, 8 May 2014 21:09:10 +0000 (UTC) Received: by mail-oa0-f70.google.com with SMTP id i4sf15334862oah.5 for ; Thu, 08 May 2014 14:09:10 -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:in-reply-to :references:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=9q8RwAnVXsw99nvHiaRLLRYJEJB3Vbwi4c6JQglezhU=; b=deAXUCLaZALz40nrKTGsDuk2T3ta53IetT/hq6pT5R0C0XtOVyY8d7l4g0L6/F4U0v 0NYQG9zIrgGA/sgmYVOD7Uy8673Qt7Efz54ZDzQWY+aa6yVpEfPC64bHv4YkwDeTqZCS xwN7HLyYlKPQWtyPJCUfcWfunfBe1r38M1NJbN6/oFiyU5CXWBC0if9WISLx5+g6dI2B vQd2Ahc5HftHdf7ZYem6WLHp8TD+UlTRsCBpnkd1egOCzsj58E07UxlmLnnry9cuflZe 0gGlgQE1U0pcdhw2+meN92/4A6cVIFTzCYBdoTGU7j6cZzMDp4sQJYXqix+H1x0Gnxrb Wl2g== X-Gm-Message-State: ALoCoQk28Sth+aGvnw4t/ViD2z856fB6SR3urgKoyjCd5MkvfQEHZsNcjyB+KFOeAf2l5DU2VgPq X-Received: by 10.182.252.166 with SMTP id zt6mr2916022obc.17.1399583350380; Thu, 08 May 2014 14:09:10 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.46.53 with SMTP id j50ls24072qga.67.gmail; Thu, 08 May 2014 14:09:10 -0700 (PDT) X-Received: by 10.52.175.166 with SMTP id cb6mr3844744vdc.1.1399583350183; Thu, 08 May 2014 14:09:10 -0700 (PDT) Received: from mail-ve0-f170.google.com (mail-ve0-f170.google.com [209.85.128.170]) by mx.google.com with ESMTPS id pu9si369873vec.209.2014.05.08.14.09.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 May 2014 14:09:10 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.128.170; Received: by mail-ve0-f170.google.com with SMTP id db11so4079344veb.29 for ; Thu, 08 May 2014 14:09:10 -0700 (PDT) X-Received: by 10.58.44.194 with SMTP id g2mr2405486vem.65.1399583350114; Thu, 08 May 2014 14:09:10 -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.220.221.72 with SMTP id ib8csp25426vcb; Thu, 8 May 2014 14:09:09 -0700 (PDT) X-Received: by 10.140.102.115 with SMTP id v106mr8508431qge.8.1399583349654; Thu, 08 May 2014 14:09:09 -0700 (PDT) Received: from ip-10-141-164-156.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id 59si1124594qgh.177.2014.05.08.14.09.08 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 08 May 2014 14:09:09 -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-141-164-156.ec2.internal) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WiVYH-0005v7-42; Thu, 08 May 2014 21:08:25 +0000 Received: from mail-lb0-f172.google.com ([209.85.217.172]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WiVY3-0005uC-5L for lng-odp@lists.linaro.org; Thu, 08 May 2014 21:08:11 +0000 Received: by mail-lb0-f172.google.com with SMTP id l4so4458566lbv.17 for ; Thu, 08 May 2014 14:08:48 -0700 (PDT) X-Received: by 10.112.52.167 with SMTP id u7mr6927929lbo.28.1399583328055; Thu, 08 May 2014 14:08:48 -0700 (PDT) Received: from localhost (c-853670d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.54.133]) by mx.google.com with ESMTPSA id xa9sm2121125lbb.36.2014.05.08.14.08.46 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 08 May 2014 14:08:47 -0700 (PDT) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Thu, 8 May 2014 23:08:29 +0200 Message-Id: <1399583309-17552-3-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1399583309-17552-1-git-send-email-anders.roxell@linaro.org> References: <1399583309-17552-1-git-send-email-anders.roxell@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv3 2/2] Makefile.inc: ODP_DEBUG_PRINT=no to disable the ODP_DBG macro 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: anders.roxell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) 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: Anders Roxell --- Makefile.inc | 6 +++++- include/odp_debug.h | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile.inc b/Makefile.inc index 6b292ce..2fa3d97 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -17,7 +17,11 @@ RMDIR := rm -rf RM := rm -f COPY := cp -r -EXTRA_CFLAGS += -DODP_DEBUG=1 +ifeq ($(ODP_DEBUG_PRINT),no) +EXTRA_CFLAGS += -DODP_DEBUG_PRINT=0 +else +EXTRA_CFLAGS += -DODP_DEBUG_PRINT=1 +endif ifeq ($(DEBUG),yes) EXTRA_CFLAGS += -O0 -g diff --git a/include/odp_debug.h b/include/odp_debug.h index e35c1ac..166716d 100644 --- a/include/odp_debug.h +++ b/include/odp_debug.h @@ -52,7 +52,9 @@ extern "C" { * Debug printing macro, which prints output when DEBUG flag is set. */ #define ODP_DBG(fmt, ...) \ - do { if (ODP_DEBUG == 1) printf(fmt, ##__VA_ARGS__); } while (0) + do { if (ODP_DEBUG_PRINT == 1) \ + printf(fmt, ##__VA_ARGS__); \ + } while (0) /** * Print output to stderr (file, line and function).