x86/mm: Fix spacing within memory encryption features message
authorTom Lendacky <thomas.lendacky@amd.com>
Mon, 18 Apr 2022 16:16:13 +0000 (11:16 -0500)
committerDave Hansen <dave.hansen@linux.intel.com>
Tue, 19 Apr 2022 15:04:17 +0000 (08:04 -0700)
The spacing is off in the memory encryption features message on AMD
platforms that support memory encryption, e.g.:

  "Memory Encryption Features active:AMD  SEV SEV-ES"

There is no space before "AMD" and two spaces after it. Fix this so that
the message is spaced properly:

  "Memory Encryption Features active: AMD SEV SEV-ES"

Fixes: 968b493173ac ("x86/mm: Make DMA memory shared for TD guest")
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Link: https://lkml.kernel.org/r/02401f3024b18e90bc2508147e22e729436cb6d9.1650298573.git.thomas.lendacky@amd.com
arch/x86/mm/mem_encrypt.c

index 10ee40b5204b6bf0668ffa1bf715a91005fd276e..1562f5ed8b1079eef000b534922342cca282deb2 100644 (file)
@@ -49,7 +49,7 @@ static void print_mem_encrypt_feature_info(void)
                return;
        }
 
-       pr_cont("AMD ");
+       pr_cont(" AMD");
 
        /* Secure Memory Encryption */
        if (cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT)) {