Commit 0bcbe429 authored by Alessandro Rubini's avatar Alessandro Rubini

wrc.h: define printf as pp_printf

Sometimes a printf happens in the code, and it eventually prevents the
wrc to link because it pick up the whole of libc.  While ptp-noposix
already has a definition of printf to mprintf, we don't have the
same for ppsi, so let's add it.

Currently, rxts_calibrator.c includes calls to printf, and didn't
build with CONFIG_PPSI until this commit.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent d8d04504
......@@ -13,6 +13,9 @@
#define mprintf pp_printf
#define vprintf pp_vprintf
#define sprintf pp_sprintf
#ifdef CONFIG_PPSI
# define printf(x, ...) pp_printf(x, ##__VA_ARGS__)
#endif
#undef offsetof
#define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment