[xen master] x86/traps: Fix show_page_walk() to avoid printing trailing whitespace

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen master] x86/traps: Fix show_page_walk() to avoid printing trailing whitespace

patchbot
commit fd903a35daf3e7e6bfa782b18dfd43746f940bed
Author:     Andrew Cooper <[hidden email]>
AuthorDate: Tue Sep 5 17:54:45 2017 +0100
Commit:     Andrew Cooper <[hidden email]>
CommitDate: Wed Sep 6 11:00:14 2017 +0100

    x86/traps: Fix show_page_walk() to avoid printing trailing whitespace
   
    This moves the L2 line to be consistent with the L3 line.
   
    Signed-off-by: Andrew Cooper <[hidden email]>
    Reviewed-by: Wei Liu <[hidden email]>
    Acked-by: Jan Beulich <[hidden email]>
---
 xen/arch/x86/x86_64/traps.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/xen/arch/x86/x86_64/traps.c b/xen/arch/x86/x86_64/traps.c
index 41ec78f..f811c68 100644
--- a/xen/arch/x86/x86_64/traps.c
+++ b/xen/arch/x86/x86_64/traps.c
@@ -206,9 +206,9 @@ void show_page_walk(unsigned long addr)
     mfn = l2e_get_pfn(l2e);
     pfn = mfn_valid(_mfn(mfn)) && machine_to_phys_mapping_valid ?
           get_gpfn_from_mfn(mfn) : INVALID_M2P_ENTRY;
-    printk(" L2[0x%03lx] = %"PRIpte" %016lx %s\n",
+    printk(" L2[0x%03lx] = %"PRIpte" %016lx%s\n",
            l2_table_offset(addr), l2e_get_intpte(l2e), pfn,
-           (l2e_get_flags(l2e) & _PAGE_PSE) ? "(PSE)" : "");
+           (l2e_get_flags(l2e) & _PAGE_PSE) ? " (PSE)" : "");
     if ( !(l2e_get_flags(l2e) & _PAGE_PRESENT) ||
          (l2e_get_flags(l2e) & _PAGE_PSE) ||
          !mfn_valid(_mfn(mfn)) )
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog