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 930e84be..a828328b 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) -- 2.46.2