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

[Xen-changelog] [xen-unstable] [powerpc] xencomm: print function names so we can tell which one failed



# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID fcef9a741e1dcd07a740218d393441a5985cafc5
# Parent  b8ec4423cc4413aea5e586813b2e20075466108e
[powerpc] xencomm: print function names so we can tell which one failed

Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
---
 xen/arch/powerpc/usercopy.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff -r b8ec4423cc44 -r fcef9a741e1d xen/arch/powerpc/usercopy.c
--- a/xen/arch/powerpc/usercopy.c       Thu Jul 27 11:12:04 2006 +0100
+++ b/xen/arch/powerpc/usercopy.c       Thu Jul 13 11:25:36 2006 -0400
@@ -86,7 +86,8 @@ xencomm_copy_from_guest(void *to, const 
     /* first we need to access the descriptor */
     desc = (struct xencomm_desc *)paddr_to_maddr((unsigned long)from);
     if (desc->magic != XENCOMM_MAGIC) {
-        printk("xencomm error: %p magic was 0x%x\n", desc, desc->magic);
+        printk("%s: error: %p magic was 0x%x\n",
+               __func__, desc, desc->magic);
         return n;
     }
 
@@ -153,7 +154,7 @@ xencomm_copy_to_guest(void *to, const vo
     /* first we need to access the descriptor */
     desc = (struct xencomm_desc *)paddr_to_maddr((unsigned long)to);
     if (desc->magic != XENCOMM_MAGIC) {
-        printk("xencomm error: %p magic was 0x%x\n", desc, desc->magic);
+        printk("%s error: %p magic was 0x%x\n", __func__, desc, desc->magic);
         return n;
     }
 
@@ -206,7 +207,7 @@ void xencomm_add_offset(void *handle, un
     /* first we need to access the descriptor */
     desc = (struct xencomm_desc *)paddr_to_maddr((unsigned long)handle);
     if (desc->magic != XENCOMM_MAGIC) {
-        printk("xencomm error: %p magic was 0x%x\n", desc, desc->magic);
+        printk("%s error: %p magic was 0x%x\n", __func__, desc, desc->magic);
         return;
     }
 

_______________________________________________
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®.