From d5ecbb83daa13b806ee4879692aaf807b6b1b69f Mon Sep 17 00:00:00 2001 From: tmk Date: Mon, 25 Nov 2013 17:39:45 +0900 Subject: [PATCH] Add printf macro as alias of xprintf --- common/print.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/print.h b/common/print.h index 930e84be99d555871aec946f27cf2c49f909eb76..a828328b6e15c645d36dbe933d1e04c1dab53a52 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)