X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=include%2Fprom.h;fp=include%2Fprom.h;h=0462e395367290a99d9555dcabd1ff005500cd8e;hb=038b8b3919c801b7065a9ec3f5aee5ea9653b5d9;hp=62e65480810e79f3654823ce5af04226adff99d9;hpb=94adb3aee138118174e34f519ff6ce3e8ece707c;p=yaboot.git diff --git a/include/prom.h b/include/prom.h index 62e6548..0462e39 100644 --- a/include/prom.h +++ b/include/prom.h @@ -74,15 +74,16 @@ void prom_putchar (char); int prom_nbgetchar(); #ifdef __GNUC__ -void prom_vprintf (char *fmt, va_list ap) __attribute__ ((format (printf, 1, 0))); -void prom_fprintf (prom_handle dev, char *fmt, ...) __attribute__ ((format (printf, 2, 3))); -void prom_printf (char *fmt, ...) __attribute__ ((format (printf, 1, 2))); -void prom_debug (char *fmt, ...) __attribute__ ((format (printf, 1, 2))); +void prom_vprintf (const char *fmt, va_list ap) __attribute__ ((format (printf, 1, 0))); +void prom_vfprintf (prom_handle file, const char *fmt, va_list ap) __attribute__ ((format (printf, 2, 0))); +void prom_fprintf (prom_handle dev, const char *fmt, ...) __attribute__ ((format (printf, 2, 3))); +void prom_printf (const char *fmt, ...) __attribute__ ((format (printf, 1, 2))); +void prom_debug (const char *fmt, ...) __attribute__ ((format (printf, 1, 2))); #else -void prom_vprintf (char *fmt, va_list ap); -void prom_fprintf (prom_handle dev, char *fmt, ...); -void prom_printf (char *fmt, ...); -void prom_debug (char *fmt, ...); +void prom_vprintf (const char *fmt, va_list ap); +void prom_fprintf (prom_handle dev, const char *fmt, ...); +void prom_printf (const char *fmt, ...); +void prom_debug (const char *fmt, ...); #endif void prom_perror (int error, char *filename);