aboutsummaryrefslogtreecommitdiff
path: root/arch/um/include/tt
diff options
context:
space:
mode:
authorPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>2006-04-10 22:53:31 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2006-04-11 06:18:35 -0700
commit9cf85b3af2dbef8d4af4604d5eaf8ca090475b7a (patch)
tree16941ac9a94b3b3c42d8d6ed96b4e96075581ae1 /arch/um/include/tt
parent6dad2d3faac21d487ffd1d15268b1802feeb3e72 (diff)
[PATCH] uml: request format warnings to GCC for appropriate functions
Add the format attribute to prototypes so GCC warns about improper usage. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Cc: Jeff Dike <jdike@addtoit.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/um/include/tt')
-rw-r--r--arch/um/include/tt/tt.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/um/include/tt/tt.h b/arch/um/include/tt/tt.h
index 80852198018..acb8356e1f9 100644
--- a/arch/um/include/tt/tt.h
+++ b/arch/um/include/tt/tt.h
@@ -19,7 +19,8 @@ extern int fork_tramp(void *sig_stack);
extern int do_proc_op(void *t, int proc_id);
extern int tracer(int (*init_proc)(void *), void *sp);
extern void attach_process(int pid);
-extern void tracer_panic(char *format, ...);
+extern void tracer_panic(char *format, ...)
+ __attribute__ ((format (printf, 1, 2)));
extern void set_init_pid(int pid);
extern int set_user_mode(void *task);
extern void set_tracing(void *t, int tracing);