[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 5 of 5] xentrace: use consistent printk prefix
# HG changeset patch # User Olaf Hering <olaf@xxxxxxxxx> # Date 1300813820 -3600 # Node ID dcbae547cce81f10c243d54bd35fd139615313cb # Parent e58f6949e76a2786c4f5a99a0da44ee58743b4df xentrace: use consistent printk prefix Signed-off-by: Olaf Hering <olaf@xxxxxxxxx> 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; } _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |