[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Nicer pretty printing.



ChangeSet 1.1567, 2005/05/26 17:40:45+01:00, kaf24@xxxxxxxxxxxxxxxxxxxx

        Nicer pretty printing.
        Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>



 fixup.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)


diff -Nru a/linux-2.6.11-xen-sparse/arch/xen/kernel/fixup.c 
b/linux-2.6.11-xen-sparse/arch/xen/kernel/fixup.c
--- a/linux-2.6.11-xen-sparse/arch/xen/kernel/fixup.c   2005-05-26 13:04:00 
-04:00
+++ b/linux-2.6.11-xen-sparse/arch/xen/kernel/fixup.c   2005-05-26 13:04:00 
-04:00
@@ -35,8 +35,7 @@
 #include <linux/delay.h>
 #include <linux/version.h>
 
-#define DA(_f, args...) printk(KERN_ALERT "  " _f "\n", args)
-#define DP(_f) printk(KERN_ALERT "  " _f "\n")
+#define DP(_f, _args...) printk(KERN_ALERT "  " _f "\n" , ## _args )
 
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
 #define __LINKAGE fastcall
@@ -47,6 +46,7 @@
 __LINKAGE void do_fixup_4gb_segment(struct pt_regs *regs, long error_code)
 {
     static unsigned long printed = 0;
+    char info[100];
     int i;
 
     if ( !test_and_set_bit(0, &printed) )
@@ -54,15 +54,17 @@
         HYPERVISOR_vm_assist(VMASST_CMD_disable,
                             VMASST_TYPE_4gb_segments_notify);
 
+        sprintf(info, "%s (pid=%d)", current->comm, current->tgid);
+
         DP("");
         DP("***************************************************************");
         DP("***************************************************************");
-        DA("** process using TLS: %16s (pid: %5d)          **", current->comm, 
current->tgid);
         DP("** WARNING: Currently emulating unsupported memory accesses  **");
         DP("**          in /lib/tls libraries. The emulation is very     **");
         DP("**          slow. To ensure full performance you should      **");
         DP("**          execute the following as root:                   **");
         DP("**          mv /lib/tls /lib/tls.disabled                    **");
+        DP("** Offending process: %-38.38s **", info);
         DP("***************************************************************");
         DP("***************************************************************");
         DP("");

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.