From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jon Loeliger Subject: [PATCH 2/9 V3] Add conditionalized debug() print macro. Date: Fri, 26 Sep 2008 15:25:41 -0500 Message-ID: <1222460748-20127-3-git-send-email-jdl@jdl.com> References: <1222460748-20127-1-git-send-email-jdl@jdl.com> <1222460748-20127-2-git-send-email-jdl@jdl.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1222460748-20127-2-git-send-email-jdl-CYoMK+44s/E@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-mnsaURCQ41sdnm+yROfE0A@public.gmane.org Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-mnsaURCQ41sdnm+yROfE0A@public.gmane.org To: devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org List-Id: devicetree@vger.kernel.org From: Jon Loeliger Signed-off-by: Jon Loeliger --- dtc.h | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/dtc.h b/dtc.h index 08d54c8..ec636f8 100644 --- a/dtc.h +++ b/dtc.h @@ -34,7 +34,15 @@ #include #include +#ifdef DEBUG +#define debug(fmt,args...) printf(fmt, ##args) +#else +#define debug(fmt,args...) +#endif + + #define DEFAULT_FDT_VERSION 17 + /* * Command line options */ -- 1.6.0.90.g436ed