]> git.donarmstrong.com Git - tmk_firmware.git/commitdiff
Add printf macro as alias of xprintf
authortmk <nobody@nowhere>
Mon, 25 Nov 2013 08:39:45 +0000 (17:39 +0900)
committertmk <nobody@nowhere>
Mon, 25 Nov 2013 08:39:45 +0000 (17:39 +0900)
common/print.h

index 930e84be99d555871aec946f27cf2c49f909eb76..a828328b6e15c645d36dbe933d1e04c1dab53a52 100644 (file)
 #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)