blob: 884d5959a9ae06f1b2c57a9494ea9491505d4c1e [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Olaf Heringdecd3002005-08-08 13:24:38 +10002#ifndef _PPC_BOOT_STDIO_H_
3#define _PPC_BOOT_STDIO_H_
4
Mark A. Greerb2c5f612006-09-19 14:05:08 +10005#include <stdarg.h>
6
7#define ENOMEM 12 /* Out of Memory */
8#define EINVAL 22 /* Invalid argument */
9#define ENOSPC 28 /* No space left on device */
10
David Gibsonfae59c32007-03-22 16:59:13 +110011extern int printf(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
Olaf Heringdecd3002005-08-08 13:24:38 +100012
Mark A. Greerb2c5f612006-09-19 14:05:08 +100013#define fprintf(fmt, args...) printf(args)
14
David Gibsonfae59c32007-03-22 16:59:13 +110015extern int sprintf(char *buf, const char *fmt, ...)
16 __attribute__((format(printf, 2, 3)));
Olaf Heringdecd3002005-08-08 13:24:38 +100017
18extern int vsprintf(char *buf, const char *fmt, va_list args);
19
Olaf Heringdecd3002005-08-08 13:24:38 +100020#endif /* _PPC_BOOT_STDIO_H_ */