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] [xen-unstable] xentrace: use consistent printk prefix

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xentrace: use consistent printk prefix
From: Xen patchbot-unstable <patchbot@xxxxxxx>
Date: Sat, 26 Mar 2011 07:30:11 +0000
Delivery-date: Sat, 26 Mar 2011 00:32:39 -0700
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/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1301043697 0
# Node ID 941119d58655f2b2df86d9ecc4cb502bbc5e783c
# Parent  d09e8885bc821a36233d1e5af36b27bacf40074b
xentrace: use consistent printk prefix

Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
---


diff -r d09e8885bc82 -r 941119d58655 xen/common/trace.c
--- a/xen/common/trace.c        Fri Mar 25 08:58:04 2011 +0000
+++ b/xen/common/trace.c        Fri Mar 25 09:01:37 2011 +0000
@@ -119,16 +119,18 @@
     size /= PAGE_SIZE;
     if ( pages > size )
     {
-        printk(XENLOG_INFO "%s: requested number of %u pages reduced to %u\n",
-               __func__, pages, (unsigned int)size);
+        printk(XENLOG_INFO "xentrace: requested number of %u pages "
+               "reduced to %u\n",
+               pages, (unsigned int)size);
         pages = size;
     }
 
     t_info_words = num_online_cpus() * pages + t_info_first_offset;
     t_info_bytes = t_info_words * sizeof(uint32_t);
     t_info_pages = PFN_UP(t_info_bytes);
-    printk(XENLOG_INFO "xentrace: requesting %u t_info pages for %u trace 
pages on %u cpus\n",
-               t_info_pages, pages, num_online_cpus());
+    printk(XENLOG_INFO "xentrace: requesting %u t_info pages "
+           "for %u trace pages on %u cpus\n",
+           t_info_pages, pages, num_online_cpus());
     return pages;
 }
 
@@ -177,7 +179,8 @@
         if ( (rawbuf = alloc_xenheap_pages(
                 order, MEMF_bits(32 + PAGE_SHIFT))) == NULL )
         {
-            printk("Xen trace buffers: memory allocation failed on cpu %d\n", 
cpu);
+            printk(XENLOG_INFO "xentrace: memory allocation failed "
+                   "on cpu %d\n", cpu);
             goto out_dealloc;
         }
 
@@ -212,7 +215,7 @@
             t_info_mfn_list[offset + i]=mfn + i;
         }
         t_info->mfn_offset[cpu]=offset;
-        printk(XENLOG_INFO "p%d mfn %"PRIx32" offset %d\n",
+        printk(XENLOG_INFO "xentrace: p%d mfn %"PRIx32" offset %d\n",
                cpu, mfn, offset);
         offset+=i;
 
@@ -225,7 +228,7 @@
 
     register_cpu_notifier(&cpu_nfb);
 
-    printk("Xen trace buffers: initialised\n");
+    printk("xentrace: initialised\n");
     wmb(); /* above must be visible before tb_init_done flag set */
     tb_init_done = 1;
 
@@ -236,7 +239,7 @@
     {
         void *rawbuf = per_cpu(t_bufs, cpu);
         per_cpu(t_bufs, cpu) = NULL;
-        printk("Xen trace buffers: cpu %d p %p\n", cpu, rawbuf);
+        printk(XENLOG_DEBUG "xentrace: cpu %d p %p\n", cpu, rawbuf);
         if ( rawbuf )
         {
             ASSERT(!(virt_to_page(rawbuf)->count_info & PGC_allocated));
@@ -245,7 +248,7 @@
     }
     free_xenheap_pages(t_info, get_order_from_pages(t_info_pages));
     t_info = NULL;
-    printk("Xen trace buffers: allocation failed! Tracing disabled.\n");
+    printk(XENLOG_WARNING "xentrace: allocation failed! Tracing disabled.\n");
     return -ENOMEM;
 }
 
@@ -264,8 +267,9 @@
      */
     if ( opt_tbuf_size && pages != opt_tbuf_size )
     {
-        printk(XENLOG_INFO "tb_set_size from %d to %d not implemented\n",
-                     opt_tbuf_size, pages);
+        printk(XENLOG_INFO "xentrace: tb_set_size from %d to %d "
+               "not implemented\n",
+               opt_tbuf_size, pages);
         return -EINVAL;
     }
 
@@ -309,9 +313,8 @@
 {
     if ( opt_tbuf_size && alloc_trace_bufs(opt_tbuf_size) )
     {
-        printk(XENLOG_INFO "Xen trace buffers: "
-                 "allocation size %d failed, disabling\n",
-                 opt_tbuf_size);
+        printk(XENLOG_INFO "xentrace: allocation size %d failed, disabling\n",
+               opt_tbuf_size);
         opt_tbuf_size = 0;
     }
 }

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xentrace: use consistent printk prefix, Xen patchbot-unstable <=