diff options
| author | tmk <nobody@nowhere> | 2014-06-16 15:38:39 +0900 |
|---|---|---|
| committer | tmk <nobody@nowhere> | 2014-07-30 14:07:43 +0900 |
| commit | 04fe78ee0a7fe9baed39f021799a3dbb24ebeb36 (patch) | |
| tree | 047ab27ca15eedfcc5523ac0daf243611501ef5e /common/debug.h | |
| parent | 867f115bee190515aa195dc3e58f1c381ea9695b (diff) | |
| download | qmk_firmware-04fe78ee0a7fe9baed39f021799a3dbb24ebeb36.tar.gz qmk_firmware-04fe78ee0a7fe9baed39f021799a3dbb24ebeb36.zip | |
Fix print and timer
Diffstat (limited to 'common/debug.h')
| -rw-r--r-- | common/debug.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/debug.h b/common/debug.h index 399b2d0a7..8ca2569a4 100644 --- a/common/debug.h +++ b/common/debug.h | |||
| @@ -25,13 +25,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 25 | #ifndef NO_DEBUG | 25 | #ifndef NO_DEBUG |
| 26 | 26 | ||
| 27 | #define dprint(s) do { if (debug_enable) print(s); } while (0) | 27 | #define dprint(s) do { if (debug_enable) print(s); } while (0) |
| 28 | #define dprintln() do { if (debug_enable) print_crlf(); } while (0) | 28 | #define dprintln(s) do { if (debug_enable) println(s); } while (0) |
| 29 | #define dprintf(fmt, ...) do { if (debug_enable) xprintf(fmt, ##__VA_ARGS__); } while (0) | 29 | #define dprintf(fmt, ...) do { if (debug_enable) xprintf(fmt, ##__VA_ARGS__); } while (0) |
| 30 | #define dmsg(s) dprintf("%s at %s: %S\n", __FILE__, __LINE__, PSTR(s)) | 30 | #define dmsg(s) dprintf("%s at %s: %S\n", __FILE__, __LINE__, PSTR(s)) |
| 31 | 31 | ||
| 32 | /* DO NOT USE these anymore */ | 32 | /* DO NOT USE these anymore */ |
| 33 | #define debug(s) do { if (debug_enable) print(s); } while (0) | 33 | #define debug(s) do { if (debug_enable) print(s); } while (0) |
| 34 | #define debugln(s) do { if (debug_enable) print_crlf(); } while (0) | 34 | #define debugln(s) do { if (debug_enable) println(s); } while (0) |
| 35 | #define debug_S(s) do { if (debug_enable) print_S(s); } while (0) | 35 | #define debug_S(s) do { if (debug_enable) print_S(s); } while (0) |
| 36 | #define debug_P(s) do { if (debug_enable) print_P(s); } while (0) | 36 | #define debug_P(s) do { if (debug_enable) print_P(s); } while (0) |
| 37 | #define debug_msg(s) do { \ | 37 | #define debug_msg(s) do { \ |
