From: tmk Date: Mon, 25 Nov 2013 08:39:45 +0000 (+0900) Subject: Add printf macro as alias of xprintf X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=d5ecbb83daa13b806ee4879692aaf807b6b1b69f;p=max%2Ftmk_keyboard.git Add printf macro as alias of xprintf --- 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)