aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-11-25 17:39:45 +0900
committertmk <nobody@nowhere>2013-11-25 17:39:45 +0900
commitd5ecbb83daa13b806ee4879692aaf807b6b1b69f (patch)
tree4aae721a62dcb93fccaca84985a6de751f9f77b2 /common
parent04c950157407c32ef04a68a1b8180630cfb9d84c (diff)
downloadqmk_firmware-d5ecbb83daa13b806ee4879692aaf807b6b1b69f.tar.gz
qmk_firmware-d5ecbb83daa13b806ee4879692aaf807b6b1b69f.zip
Add printf macro as alias of xprintf
Diffstat (limited to 'common')
-rw-r--r--common/print.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/print.h b/common/print.h
index 930e84be9..a828328b6 100644
--- a/common/print.h
+++ b/common/print.h
@@ -40,6 +40,10 @@
40#endif 40#endif
41#define println(s) print_P(PSTR(s "\n")) 41#define println(s) print_P(PSTR(s "\n"))
42 42
43#ifndef AVR_LIBC_PRINTF
44#define printf(f, ...) xprintf(f, ##__VA_ARGS__)
45#endif
46
43/* for old name */ 47/* for old name */
44#define pdec(data) print_dec(data) 48#define pdec(data) print_dec(data)
45#define pdec16(data) print_dec(data) 49#define pdec16(data) print_dec(data)