diff options
author | Thanos Makatos <thanos.makatos@nutanix.com> | 2020-02-27 06:55:36 -0500 |
---|---|---|
committer | Thanos Makatos <thanos.makatos@nutanix.com> | 2020-02-28 06:30:23 -0500 |
commit | 4a35a27cecb4d61e891967c751bda799a7492a9b (patch) | |
tree | f1c0f0573686ef415a41736f20765111d0e41da6 /kmod | |
parent | f77c1f3413a53e9a73cac4261a526ece0790a4e8 (diff) | |
download | libvfio-user-4a35a27cecb4d61e891967c751bda799a7492a9b.zip libvfio-user-4a35a27cecb4d61e891967c751bda799a7492a9b.tar.gz libvfio-user-4a35a27cecb4d61e891967c751bda799a7492a9b.tar.bz2 |
code cleanup
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'kmod')
-rw-r--r-- | kmod/muser.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kmod/muser.c b/kmod/muser.c index a0bc722..9e5a2c8 100644 --- a/kmod/muser.c +++ b/kmod/muser.c @@ -871,6 +871,8 @@ void muser_close(struct mdev_device *mdev) struct muser_dev *mudev = mdev_get_drvdata(mdev); int err; + muser_dbg("release %pUl", &mudev->uuid); + err = dma_unmap_all(mudev); if (unlikely(err)) muser_alert("failed to remove one or more DMA maps"); @@ -1198,7 +1200,7 @@ static int muser_mmap(struct mdev_device *const mdev, */ if ((vma->vm_flags & ~(VM_READ | VM_WRITE | VM_SHARED | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC | VM_MAYSHARE))) { - muser_dbg("bag flags=0x%lx", vma->vm_flags); + muser_dbg("bag flags=%#lx", vma->vm_flags); return -EINVAL; } |