ia64/xen-unstable

changeset 10834:fcef9a741e1d

[powerpc] xencomm: print function names so we can tell which one failed

Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
author Jimi Xenidis <jimix@watson.ibm.com>
date Thu Jul 13 11:25:36 2006 -0400 (2006-07-13)
parents b8ec4423cc44
children a4ab169ee850
files xen/arch/powerpc/usercopy.c
line diff
     1.1 --- a/xen/arch/powerpc/usercopy.c	Thu Jul 27 11:12:04 2006 +0100
     1.2 +++ b/xen/arch/powerpc/usercopy.c	Thu Jul 13 11:25:36 2006 -0400
     1.3 @@ -86,7 +86,8 @@ xencomm_copy_from_guest(void *to, const 
     1.4      /* first we need to access the descriptor */
     1.5      desc = (struct xencomm_desc *)paddr_to_maddr((unsigned long)from);
     1.6      if (desc->magic != XENCOMM_MAGIC) {
     1.7 -        printk("xencomm error: %p magic was 0x%x\n", desc, desc->magic);
     1.8 +        printk("%s: error: %p magic was 0x%x\n",
     1.9 +               __func__, desc, desc->magic);
    1.10          return n;
    1.11      }
    1.12  
    1.13 @@ -153,7 +154,7 @@ xencomm_copy_to_guest(void *to, const vo
    1.14      /* first we need to access the descriptor */
    1.15      desc = (struct xencomm_desc *)paddr_to_maddr((unsigned long)to);
    1.16      if (desc->magic != XENCOMM_MAGIC) {
    1.17 -        printk("xencomm error: %p magic was 0x%x\n", desc, desc->magic);
    1.18 +        printk("%s error: %p magic was 0x%x\n", __func__, desc, desc->magic);
    1.19          return n;
    1.20      }
    1.21  
    1.22 @@ -206,7 +207,7 @@ void xencomm_add_offset(void *handle, un
    1.23      /* first we need to access the descriptor */
    1.24      desc = (struct xencomm_desc *)paddr_to_maddr((unsigned long)handle);
    1.25      if (desc->magic != XENCOMM_MAGIC) {
    1.26 -        printk("xencomm error: %p magic was 0x%x\n", desc, desc->magic);
    1.27 +        printk("%s error: %p magic was 0x%x\n", __func__, desc, desc->magic);
    1.28          return;
    1.29      }
    1.30