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:18:38 +0100
commita1830440fc93ecb531f003b524fec9249f020303 (patch)
tree2bea1916acf8dc016ff434ce8508c765cc370e2f
parent0fa403b51bfab1836113d560d8a5d8ba3c9e4ea6 (diff)
define 'fprintf(stderr,' as a wrapper around printf(
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>