summaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/udbg.h
diff options
context:
space:
mode:
authorjimix@watson.ibm.com <jimix@watson.ibm.com>2006-05-17 12:00:35 -0400
committerPaul Mackerras <paulus@samba.org>2006-05-19 15:02:19 +1000
commit8ae5b2801a0beb10a55a7ebd5140482e2f84c3fa (patch)
treee392faf5cc57559564da909f2bb2b65fcc18b516 /include/asm-powerpc/udbg.h
parent35dd54326e857f1648c7cc1028e8d5e1dbe04992 (diff)
downloadblackbird-op-linux-8ae5b2801a0beb10a55a7ebd5140482e2f84c3fa.tar.gz
blackbird-op-linux-8ae5b2801a0beb10a55a7ebd5140482e2f84c3fa.zip
[PATCH] powerpc: udbg_printf() formatting attribute
This patch allows the compiler to catch any printf-like mismatches for udbg_printf(). After some brute force building I've only found issues with my own code and lparcfg.c It could break some developers, but IMHO that would be goodness. Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/udbg.h')
-rw-r--r--include/asm-powerpc/udbg.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-powerpc/udbg.h b/include/asm-powerpc/udbg.h
index 5c4236c342bb..19a1517ac43b 100644
--- a/include/asm-powerpc/udbg.h
+++ b/include/asm-powerpc/udbg.h
@@ -23,7 +23,8 @@ extern int udbg_write(const char *s, int n);
extern int udbg_read(char *buf, int buflen);
extern void register_early_udbg_console(void);
-extern void udbg_printf(const char *fmt, ...);
+extern void udbg_printf(const char *fmt, ...)
+ __attribute__ ((format (printf, 1, 2)));
extern void udbg_progress(char *s, unsigned short hex);
extern void udbg_init_uart(void __iomem *comport, unsigned int speed,
OpenPOWER on IntegriCloud