ia64/xen-unstable

changeset 5175:3c8c7c46c4a8

bitkeeper revision 1.1567 (4295fc0dckrpqmqbCHpAHRHUcTGMTQ)

Nicer pretty printing.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Thu May 26 16:40:45 2005 +0000 (2005-05-26)
parents 1f65ea0027f8
children 122c8adf6ca1
files linux-2.6.11-xen-sparse/arch/xen/kernel/fixup.c
line diff
     1.1 --- a/linux-2.6.11-xen-sparse/arch/xen/kernel/fixup.c	Thu May 26 16:09:52 2005 +0000
     1.2 +++ b/linux-2.6.11-xen-sparse/arch/xen/kernel/fixup.c	Thu May 26 16:40:45 2005 +0000
     1.3 @@ -35,8 +35,7 @@
     1.4  #include <linux/delay.h>
     1.5  #include <linux/version.h>
     1.6  
     1.7 -#define DA(_f, args...) printk(KERN_ALERT "  " _f "\n", args)
     1.8 -#define DP(_f) printk(KERN_ALERT "  " _f "\n")
     1.9 +#define DP(_f, _args...) printk(KERN_ALERT "  " _f "\n" , ## _args )
    1.10  
    1.11  #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
    1.12  #define __LINKAGE fastcall
    1.13 @@ -47,6 +46,7 @@
    1.14  __LINKAGE void do_fixup_4gb_segment(struct pt_regs *regs, long error_code)
    1.15  {
    1.16      static unsigned long printed = 0;
    1.17 +    char info[100];
    1.18      int i;
    1.19  
    1.20      if ( !test_and_set_bit(0, &printed) )
    1.21 @@ -54,15 +54,17 @@
    1.22          HYPERVISOR_vm_assist(VMASST_CMD_disable,
    1.23  			     VMASST_TYPE_4gb_segments_notify);
    1.24  
    1.25 +        sprintf(info, "%s (pid=%d)", current->comm, current->tgid);
    1.26 +
    1.27          DP("");
    1.28          DP("***************************************************************");
    1.29          DP("***************************************************************");
    1.30 -        DA("** process using TLS: %16s (pid: %5d)          **", current->comm, current->tgid);
    1.31          DP("** WARNING: Currently emulating unsupported memory accesses  **");
    1.32          DP("**          in /lib/tls libraries. The emulation is very     **");
    1.33          DP("**          slow. To ensure full performance you should      **");
    1.34          DP("**          execute the following as root:                   **");
    1.35          DP("**          mv /lib/tls /lib/tls.disabled                    **");
    1.36 +        DP("** Offending process: %-38.38s **", info);
    1.37          DP("***************************************************************");
    1.38          DP("***************************************************************");
    1.39          DP("");