X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=arch%2Fpowerpc%2Fboot%2Fstdio.h;h=adffc58412d4afcd8cf2e25c579fc1abcfe6a689;hb=8fa82790fb9dfe57aeafc8de6b6a5c1df63efa06;hp=eb9e16c87aef793c380cea859a19674c2f035032;hpb=e7de369050534025b33aab1033358bf47a577e4d;p=linux-2.6 diff --git a/arch/powerpc/boot/stdio.h b/arch/powerpc/boot/stdio.h index eb9e16c87a..adffc58412 100644 --- a/arch/powerpc/boot/stdio.h +++ b/arch/powerpc/boot/stdio.h @@ -1,9 +1,18 @@ #ifndef _PPC_BOOT_STDIO_H_ #define _PPC_BOOT_STDIO_H_ -extern int printf(const char *fmt, ...); +#include -extern int sprintf(char *buf, const char *fmt, ...); +#define ENOMEM 12 /* Out of Memory */ +#define EINVAL 22 /* Invalid argument */ +#define ENOSPC 28 /* No space left on device */ + +extern int printf(const char *fmt, ...) __attribute__((format(printf, 1, 2))); + +#define fprintf(fmt, args...) printf(args) + +extern int sprintf(char *buf, const char *fmt, ...) + __attribute__((format(printf, 2, 3))); extern int vsprintf(char *buf, const char *fmt, va_list args);