iommu/amd: Print reason for iommu_map_page failure in map_sg
authorJerry Snitselaar <jsnitsel@redhat.com>
Tue, 29 Jan 2019 00:59:37 +0000 (17:59 -0700)
committerJoerg Roedel <jroedel@suse.de>
Wed, 30 Jan 2019 16:26:24 +0000 (17:26 +0100)
commit2e6c6a8657e8709ce363a62238e792918dd158b3
treeeb7f95773a10c936145b6a02bce19397409b0206
parentf17b5f06cb92ef2250513a1e154c47b78df07d40
iommu/amd: Print reason for iommu_map_page failure in map_sg

Since there are multiple possible failures in iommu_map_page
it would be useful to know which case is being hit when the
error message is printed in map_sg. While here, fix up checkpatch
complaint about using function name in a string instead of
__func__.

Cc: Joerg Roedel <joro@8bytes.org>
Signed-off-by: Jerry Snitselaar <jsnitsel@redhat.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c