]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
x86/traps: Fix show_page_walk() to avoid printing trailing whitespace
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 5 Sep 2017 16:54:45 +0000 (17:54 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 6 Sep 2017 10:00:14 +0000 (11:00 +0100)
This moves the L2 line to be consistent with the L3 line.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/x86_64/traps.c

index 41ec78f8fc705e6347dc2393f37e3cdcfaa8a211..f811c6893f117559a61d9bbb6e9c80efbee9b6ad 100644 (file)
@@ -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)) )