Browse Source

Debug: introduce DPRINTHEAD function

pull/778/head
rejoe2 2 years ago
committed by GitHub
parent
commit
d01b527eb4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/utils/dbg.h

5
src/utils/dbg.h

@ -146,6 +146,10 @@
}\ }\
}) })
#define DPRINTHEAD(level, id) ({\
DPRINT(level, F("(#")); DBGPRINT(String(id)); DBGPRINT(F(") "));\
})
#define DPRINTLN(level, str) ({\ #define DPRINTLN(level, str) ({\
switch(level) {\ switch(level) {\
case DBG_ERROR: PERRLN(str); break; \ case DBG_ERROR: PERRLN(str); break; \
@ -155,7 +159,6 @@
default: PVERBLN(str); break; \ default: PVERBLN(str); break; \
}\ }\
}) })
/*class ahoyLog { /*class ahoyLog {
public: public:
ahoyLog() {} ahoyLog() {}

Loading…
Cancel
Save