oops: add missing lines in nfc-utils.h.
This commit is contained in:
parent
dba06a555e
commit
bd04a1ab9a
1 changed files with 2 additions and 1 deletions
|
@ -44,7 +44,6 @@
|
||||||
* @brief Print a message of standard output only in DEBUG mode
|
* @brief Print a message of standard output only in DEBUG mode
|
||||||
*/
|
*/
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
// #define DBG(x, args...) printf("DBG %s:%d: " x "\n", __FILE__, __LINE__,## args )
|
|
||||||
# define DBG(...) do { \
|
# define DBG(...) do { \
|
||||||
warnx ("DBG %s:%d", __FILE__, __LINE__); \
|
warnx ("DBG %s:%d", __FILE__, __LINE__); \
|
||||||
warnx (" " __VA_ARGS__ ); \
|
warnx (" " __VA_ARGS__ ); \
|
||||||
|
@ -57,6 +56,7 @@
|
||||||
* @macro WARN
|
* @macro WARN
|
||||||
* @brief Print a warn message
|
* @brief Print a warn message
|
||||||
*/
|
*/
|
||||||
|
#ifdef DEBUG
|
||||||
# define WARN(...) do { \
|
# define WARN(...) do { \
|
||||||
warnx ("WARNING %s:%d", __FILE__, __LINE__); \
|
warnx ("WARNING %s:%d", __FILE__, __LINE__); \
|
||||||
warnx (" " __VA_ARGS__ ); \
|
warnx (" " __VA_ARGS__ ); \
|
||||||
|
@ -69,6 +69,7 @@
|
||||||
* @macro ERR
|
* @macro ERR
|
||||||
* @brief Print a error message
|
* @brief Print a error message
|
||||||
*/
|
*/
|
||||||
|
#ifdef DEBUG
|
||||||
# define ERR(...) do { \
|
# define ERR(...) do { \
|
||||||
warnx ("ERROR %s:%d", __FILE__, __LINE__); \
|
warnx ("ERROR %s:%d", __FILE__, __LINE__); \
|
||||||
warnx (" " __VA_ARGS__ ); \
|
warnx (" " __VA_ARGS__ ); \
|
||||||
|
|
Loading…
Add table
Reference in a new issue