All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iommu: Suppress empty whitespaces in prints
@ 2023-05-09 19:10 Florian Fainelli
  2023-05-17 16:17 ` Jason Gunthorpe
  0 siblings, 1 reply; 2+ messages in thread
From: Florian Fainelli @ 2023-05-09 19:10 UTC (permalink / raw)
  To: iommu
  Cc: linux-kernel, Florian Fainelli, Joerg Roedel, Will Deacon, Robin Murphy

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>
---
 drivers/iommu/iommu.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c
index f1dcfa3f1a1b..0dd6ed6bec47 100644
--- a/drivers/iommu/iommu.c
+++ b/drivers/iommu/iommu.c
@@ -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)
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] iommu: Suppress empty whitespaces in prints
  2023-05-09 19:10 [PATCH] iommu: Suppress empty whitespaces in prints Florian Fainelli
@ 2023-05-17 16:17 ` Jason Gunthorpe
  0 siblings, 0 replies; 2+ messages in thread
From: Jason Gunthorpe @ 2023-05-17 16:17 UTC (permalink / raw)
  To: Florian Fainelli
  Cc: iommu, linux-kernel, Joerg Roedel, Will Deacon, Robin Murphy

On Tue, May 09, 2023 at 12:10:48PM -0700, Florian Fainelli wrote:
> 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>
> ---
>  drivers/iommu/iommu.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)

Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>

Jason

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-05-17 16:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-09 19:10 [PATCH] iommu: Suppress empty whitespaces in prints Florian Fainelli
2023-05-17 16:17 ` Jason Gunthorpe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.