summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-11-25 09:39:45 +0100
committertmk <nobody@nowhere>2013-11-25 09:39:45 +0100
commitd5ecbb83daa13b806ee4879692aaf807b6b1b69f (patch)
tree4aae721a62dcb93fccaca84985a6de751f9f77b2 /common
parent04c950157407c32ef04a68a1b8180630cfb9d84c (diff)
downloadqmk_firmware-d5ecbb83daa13b806ee4879692aaf807b6b1b69f.tar.gz
qmk_firmware-d5ecbb83daa13b806ee4879692aaf807b6b1b69f.tar.xz
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 @@
#endif
#define println(s) print_P(PSTR(s "\n"))
+#ifndef AVR_LIBC_PRINTF
+#define printf(f, ...) xprintf(f, ##__VA_ARGS__)
+#endif
+
/* for old name */
#define pdec(data) print_dec(data)
#define pdec16(data) print_dec(data)