Re: [PATCH] iommu: Print a message with the default domain type created

From: Joerg Roedel
Date: Wed Apr 26 2017 - 11:50:55 EST


Hi Robert,

On Wed, Apr 26, 2017 at 04:38:13PM +0200, Robert Richter wrote:
> - pr_info("Adding device %s to group %d\n", dev_name(dev), group->id);
> + pr_info("Adding device %s to group %d, default domain type %d\n",
> + dev_name(dev), group->id,
> + group->default_domain ? group->default_domain->type : -1);

Printing just a number is not very user-friendly. We have only two
default domain-types right now, so it is sufficient to just print
additional information if a device is identity-mapped. Something like

"Adding device %s to group %d - using identity mapping"


Regards,

Joerg