aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86_64/ia32
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2006-06-26 07:56:52 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-26 13:48:16 -0400
commitbebfa1013eee1d91b3242e5801cc8fbdfaf148ec (patch)
treed1abf916c29bbb5c312717f57798987268aff9a9 /arch/x86_64/ia32
parentf201611fcecdfa825471dc425ee007997228fae4 (diff)
[PATCH] x86_64: Add compat_printk and sysctl to turn off compat layer warnings
Sometimes e.g. with crashme the compat layer warnings can be noisy. Add a way to turn them off by gating all output through compat_printk that checks a global sysctl. The default is not changed. Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/x86_64/ia32')
-rw-r--r--arch/x86_64/ia32/sys_ia32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86_64/ia32/sys_ia32.c b/arch/x86_64/ia32/sys_ia32.c
index f182b20858e2..ee30557629dc 100644
--- a/arch/x86_64/ia32/sys_ia32.c
+++ b/arch/x86_64/ia32/sys_ia32.c
@@ -514,7 +514,7 @@ int sys32_ni_syscall(int call)
514 static char lastcomm[sizeof(me->comm)]; 514 static char lastcomm[sizeof(me->comm)];
515 515
516 if (strncmp(lastcomm, me->comm, sizeof(lastcomm))) { 516 if (strncmp(lastcomm, me->comm, sizeof(lastcomm))) {
517 printk(KERN_INFO "IA32 syscall %d from %s not implemented\n", 517 compat_printk(KERN_INFO "IA32 syscall %d from %s not implemented\n",
518 call, me->comm); 518 call, me->comm);
519 strncpy(lastcomm, me->comm, sizeof(lastcomm)); 519 strncpy(lastcomm, me->comm, sizeof(lastcomm));
520 } 520 }
@@ -916,7 +916,7 @@ long sys32_vm86_warning(void)
916 struct task_struct *me = current; 916 struct task_struct *me = current;
917 static char lastcomm[sizeof(me->comm)]; 917 static char lastcomm[sizeof(me->comm)];
918 if (strncmp(lastcomm, me->comm, sizeof(lastcomm))) { 918 if (strncmp(lastcomm, me->comm, sizeof(lastcomm))) {
919 printk(KERN_INFO "%s: vm86 mode not supported on 64 bit kernel\n", 919 compat_printk(KERN_INFO "%s: vm86 mode not supported on 64 bit kernel\n",
920 me->comm); 920 me->comm);
921 strncpy(lastcomm, me->comm, sizeof(lastcomm)); 921 strncpy(lastcomm, me->comm, sizeof(lastcomm));
922 } 922 }