IonDB
Github
Jenkins
Documentation
Wiki
Files
Structures
File List
File Members
src
serial
printf_redirect.h
Go to the documentation of this file.
1
/******************************************************************************/
35
/******************************************************************************/
36
37
#if !defined(PRINTF_REDIRECT_H_)
38
#define PRINTF_REDIRECT_H_
39
40
#if defined(__cplusplus)
41
extern
"C"
{
42
#endif
43
44
/* Preprocessor replacement for printf. */
45
#define printf(format, ...) { char buf[512];snprintf(buf, 512, format, ## __VA_ARGS__);serial_print(buf);}
46
47
#if defined(__cplusplus)
48
}
49
#endif
50
51
#endif
/* PRINTF_REDIRECT_H_ */