mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 13:41:51 +00:00
iommu: Suppress empty whitespaces in prints
If IOMMU_CMD_LINE_DMA_API or IOMMU_CMD_LINE_STRICT are not set in iommu_cmd_line, we will be emitting a whitespace before the newline. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Link: https://lore.kernel.org/r/20230509191049.1752259-1-f.fainelli@gmail.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
This commit is contained in:
parent
a4fdd97622
commit
32261d1094
@ -176,16 +176,16 @@ static int __init iommu_subsys_init(void)
|
||||
if (!iommu_default_passthrough() && !iommu_dma_strict)
|
||||
iommu_def_domain_type = IOMMU_DOMAIN_DMA_FQ;
|
||||
|
||||
pr_info("Default domain type: %s %s\n",
|
||||
pr_info("Default domain type: %s%s\n",
|
||||
iommu_domain_type_str(iommu_def_domain_type),
|
||||
(iommu_cmd_line & IOMMU_CMD_LINE_DMA_API) ?
|
||||
"(set via kernel command line)" : "");
|
||||
" (set via kernel command line)" : "");
|
||||
|
||||
if (!iommu_default_passthrough())
|
||||
pr_info("DMA domain TLB invalidation policy: %s mode %s\n",
|
||||
pr_info("DMA domain TLB invalidation policy: %s mode%s\n",
|
||||
iommu_dma_strict ? "strict" : "lazy",
|
||||
(iommu_cmd_line & IOMMU_CMD_LINE_STRICT) ?
|
||||
"(set via kernel command line)" : "");
|
||||
" (set via kernel command line)" : "");
|
||||
|
||||
nb = kcalloc(ARRAY_SIZE(iommu_buses), sizeof(*nb), GFP_KERNEL);
|
||||
if (!nb)
|
||||
|
Loading…
Reference in New Issue
Block a user