treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / powerpc / boot / stdio.h
blob884d5959a9ae06f1b2c57a9494ea9491505d4c1e
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _PPC_BOOT_STDIO_H_
3 #define _PPC_BOOT_STDIO_H_
5 #include <stdarg.h>
7 #define ENOMEM 12 /* Out of Memory */
8 #define EINVAL 22 /* Invalid argument */
9 #define ENOSPC 28 /* No space left on device */
11 extern int printf(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
13 #define fprintf(fmt, args...) printf(args)
15 extern int sprintf(char *buf, const char *fmt, ...)
16 __attribute__((format(printf, 2, 3)));
18 extern int vsprintf(char *buf, const char *fmt, va_list args);
20 #endif /* _PPC_BOOT_STDIO_H_ */