blob: adffc58412d4afcd8cf2e25c579fc1abcfe6a689 [file] [log] [blame]
Olaf Heringdecd3002005-08-08 13:24:38 +10001#ifndef _PPC_BOOT_STDIO_H_
2#define _PPC_BOOT_STDIO_H_
3
Mark A. Greerb2c5f612006-09-19 14:05:08 +10004#include <stdarg.h>
5
6#define ENOMEM 12 /* Out of Memory */
7#define EINVAL 22 /* Invalid argument */
8#define ENOSPC 28 /* No space left on device */
9
David Gibsonfae59c32007-03-22 16:59:13 +110010extern int printf(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
Olaf Heringdecd3002005-08-08 13:24:38 +100011
Mark A. Greerb2c5f612006-09-19 14:05:08 +100012#define fprintf(fmt, args...) printf(args)
13
David Gibsonfae59c32007-03-22 16:59:13 +110014extern int sprintf(char *buf, const char *fmt, ...)
15 __attribute__((format(printf, 2, 3)));
Olaf Heringdecd3002005-08-08 13:24:38 +100016
17extern int vsprintf(char *buf, const char *fmt, va_list args);
18
Olaf Heringdecd3002005-08-08 13:24:38 +100019#endif /* _PPC_BOOT_STDIO_H_ */