~ruther/qmk_firmware

d5ecbb83daa13b806ee4879692aaf807b6b1b69f — tmk 11 years ago 04c9501
Add printf macro as alias of xprintf
1 files changed, 4 insertions(+), 0 deletions(-)

M common/print.h
M common/print.h => common/print.h +4 -0
@@ 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)