aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/xen/xenfs/privcmd.c
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>2009-03-06 12:56:59 -0500
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>2010-10-20 19:22:31 -0400
commit441c7416b55d3d48b4aaafc5bdd804092387d877 (patch)
tree628131f9abe21d7b9534a6185f57ab263579cacc /drivers/xen/xenfs/privcmd.c
parent35f8c1c343f2918ea24f05282d14e711887d8278 (diff)
xen/privcmd: print SIGBUS faults
Print more detail about privcmd mapping faults for debugging. [ Impact: debug ] Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Diffstat (limited to 'drivers/xen/xenfs/privcmd.c')
-rw-r--r--drivers/xen/xenfs/privcmd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/xen/xenfs/privcmd.c b/drivers/xen/xenfs/privcmd.c
index c7192f314f86..6b602f505363 100644
--- a/drivers/xen/xenfs/privcmd.c
+++ b/drivers/xen/xenfs/privcmd.c
@@ -403,6 +403,10 @@ static long privcmd_ioctl(struct file *file,
403#ifndef HAVE_ARCH_PRIVCMD_MMAP 403#ifndef HAVE_ARCH_PRIVCMD_MMAP
404static int privcmd_fault(struct vm_area_struct *vma, struct vm_fault *vmf) 404static int privcmd_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
405{ 405{
406 printk(KERN_DEBUG "privcmd_fault: vma=%p %lx-%lx, pgoff=%lx, uv=%p\n",
407 vma, vma->vm_start, vma->vm_end,
408 vmf->pgoff, vmf->virtual_address);
409
406 return VM_FAULT_SIGBUS; 410 return VM_FAULT_SIGBUS;
407} 411}
408 412