WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Nicer pretty printing.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Nicer pretty printing.
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Thu, 26 May 2005 16:40:45 +0000
Delivery-date: Thu, 26 May 2005 17:03:13 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Xen Development List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Nicer pretty printing., BitKeeper Bot <=