From: whitequark Date: Sat, 1 Aug 2015 17:14:09 +0000 (+0300) Subject: libbase: downstream users should provide fprintf. X-Git-Tag: 24jan2021_ls180~2163 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=13a50a93d9b6598970fc7eb5f787469fd9b797cd;p=litex.git libbase: downstream users should provide fprintf. --- diff --git a/software/libbase/console.c b/software/libbase/console.c index af8d140f..17274e22 100644 --- a/software/libbase/console.c +++ b/software/libbase/console.c @@ -78,18 +78,3 @@ int printf(const char *fmt, ...) return len; } - -int fprintf(FILE *stream, const char *fmt, ...) -{ - va_list args; - int len; - char outbuf[PRINTF_BUFFER_SIZE]; - - va_start(args, fmt); - len = vscnprintf(outbuf, sizeof(outbuf), fmt, args); - va_end(args); - outbuf[len] = 0; - putsnonl(outbuf); - - return len; -}