From bd04a1ab9a01b951951c4c5c4a18d2b0318e90eb Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Sat, 5 Mar 2011 08:55:53 +0000 Subject: [PATCH] oops: add missing lines in nfc-utils.h. --- examples/nfc-utils.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/nfc-utils.h b/examples/nfc-utils.h index 8093ab1..f0f0678 100644 --- a/examples/nfc-utils.h +++ b/examples/nfc-utils.h @@ -44,7 +44,6 @@ * @brief Print a message of standard output only in DEBUG mode */ #ifdef DEBUG -// #define DBG(x, args...) printf("DBG %s:%d: " x "\n", __FILE__, __LINE__,## args ) # define DBG(...) do { \ warnx ("DBG %s:%d", __FILE__, __LINE__); \ warnx (" " __VA_ARGS__ ); \ @@ -57,6 +56,7 @@ * @macro WARN * @brief Print a warn message */ +#ifdef DEBUG # define WARN(...) do { \ warnx ("WARNING %s:%d", __FILE__, __LINE__); \ warnx (" " __VA_ARGS__ ); \ @@ -69,6 +69,7 @@ * @macro ERR * @brief Print a error message */ +#ifdef DEBUG # define ERR(...) do { \ warnx ("ERROR %s:%d", __FILE__, __LINE__); \ warnx (" " __VA_ARGS__ ); \