projects
/
litex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f7f0a3
)
libbase: downstream users should provide fprintf.
author
whitequark
<whitequark@whitequark.org>
Sat, 1 Aug 2015 17:14:09 +0000
(20:14 +0300)
committer
whitequark
<whitequark@whitequark.org>
Sat, 1 Aug 2015 17:14:09 +0000
(20:14 +0300)
software/libbase/console.c
patch
|
blob
|
history
diff --git
a/software/libbase/console.c
b/software/libbase/console.c
index af8d140f7be48b8169c346c2dd129431db77b9dd..17274e2290fe9239e464d808c7eef00bb492dd20 100644
(file)
--- 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;
-}