From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: [PATCH 5 of 5] xentrace: use consistent printk prefix Date: Tue, 22 Mar 2011 20:21:33 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: George Dunlap List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User Olaf Hering # Date 1300813820 -3600 # Node ID dcbae547cce81f10c243d54bd35fd139615313cb # Parent e58f6949e76a2786c4f5a99a0da44ee58743b4df xentrace: use consistent printk prefix Signed-off-by: Olaf Hering diff -r e58f6949e76a -r dcbae547cce8 xen/common/trace.c --- a/xen/common/trace.c Tue Mar 22 18:08:19 2011 +0100 +++ b/xen/common/trace.c Tue Mar 22 18:10:20 2011 +0100 @@ -117,7 +117,7 @@ size /= PAGE_SIZE; if ( pages > size ) { - printk(XENLOG_INFO "%s: requested number of %u pages reduced to %u\n", + printk(XENLOG_INFO "Xen trace buffers: %s: requested number of %u pages reduced to %u\n", __func__, pages, (unsigned int)size); pages = size; } @@ -177,7 +177,7 @@ 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 "Xen trace buffers: memory allocation failed on cpu %d\n", cpu); goto out_dealloc; } @@ -212,7 +212,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 "Xen trace buffers: p%d mfn %"PRIx32" offset %d\n", cpu, mfn, offset); offset+=i; @@ -236,7 +236,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 "Xen trace buffers: cpu %d p %p\n", cpu, rawbuf); if ( rawbuf ) { ASSERT(!(virt_to_page(rawbuf)->count_info & PGC_allocated)); @@ -245,7 +245,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 "Xen trace buffers: allocation failed! Tracing disabled.\n"); return -ENOMEM; } @@ -264,7 +264,7 @@ */ if ( opt_tbuf_size && pages != opt_tbuf_size ) { - printk(XENLOG_INFO "tb_set_size from %d to %d not implemented\n", + printk(XENLOG_INFO "Xen trace buffers: tb_set_size from %d to %d not implemented\n", opt_tbuf_size, pages); return -EINVAL; }