diff options
author | tmk <nobody@nowhere> | 2013-11-25 17:39:45 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2013-11-25 17:39:45 +0900 |
commit | d5ecbb83daa13b806ee4879692aaf807b6b1b69f (patch) | |
tree | 4aae721a62dcb93fccaca84985a6de751f9f77b2 | |
parent | 04c950157407c32ef04a68a1b8180630cfb9d84c (diff) |
Add printf macro as alias of xprintf
-rw-r--r-- | common/print.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/print.h b/common/print.h index 930e84be99..a828328b6e 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) |