mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-05-08 10:08:47 +00:00
libc: Move tf_printf and tf_snprintf to libc
Change their names to printf and snprintf. They are much smaller than the previous versions we had, which makes them better suited for the Trusted Firmware. Change-Id: Ia872af91b7b967c47fce012eccecede7873a3daf Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
This commit is contained in:
parent
cb6dbfe3dc
commit
870ce3ddd3
8 changed files with 23 additions and 42 deletions
|
@ -11,6 +11,7 @@
|
|||
#ifndef STDIO_H
|
||||
#define STDIO_H
|
||||
|
||||
#include <cdefs.h>
|
||||
#include <stdio_.h>
|
||||
|
||||
#ifndef NULL
|
||||
|
@ -19,14 +20,11 @@
|
|||
|
||||
#define EOF -1
|
||||
|
||||
int printf(const char *fmt, ...);
|
||||
int snprintf(char *s, size_t n, const char *fmt, ...);
|
||||
int sprintf(char *s, const char *fmt, ...);
|
||||
int sscanf(const char *s, const char *fmt, ...);
|
||||
int printf(const char *fmt, ...) __printflike(1, 2);
|
||||
int snprintf(char *s, size_t n, const char *fmt, ...) __printflike(3, 4);
|
||||
|
||||
#ifdef STDARG_H
|
||||
int vsnprintf(char *s, size_t n, const char *fmt, va_list arg);
|
||||
int vsprintf(char *s, const char *fmt, va_list arg);
|
||||
int vprintf(const char *fmt, va_list args);
|
||||
#endif
|
||||
|
||||
int putchar(int c);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue