summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-01-15 19:15:37 +0100
committerHarald Welte <laforge@gnumonks.org>2017-01-15 19:15:37 +0100
commitde3f6080aaf86c6ea0e59d0223934680d6fd1cc9 (patch)
treebdfb3088887182accbd8c7e1dd37bd34c525f711
parent84ac308411474aa2e1f6bb063f1dd0906e8f33b2 (diff)
define 'fprintf(stderr,' as a wrapper around printf(laforge/lib-update
This is in preparation to work with a more recent version of libosmocore, which wants to print to stderr in some cases.
-rw-r--r--src/target/firmware/include/stdio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/target/firmware/include/stdio.h b/src/target/firmware/include/stdio.h
index 15ed668..86f9333 100644
--- a/src/target/firmware/include/stdio.h
+++ b/src/target/firmware/include/stdio.h
@@ -10,6 +10,7 @@
int printf(const char *format, ...);
int sprintf(char *str, const char *format, ...);
int snprintf(char *str, size_t size, const char *format, ...);
+#define fprintf(fd, fmt, args...) printf(fmt, ## args)
#include <stdarg.h>