[PATCH kvm-unit-tests 2/3] report already adds a newline

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Andrew Jones <drjones@xxxxxxxxxx>
---
 arm/spinlock-test.c | 2 +-
 x86/asyncpf.c       | 8 ++++----
 x86/svm.c           | 4 ++--
 x86/vmx_tests.c     | 2 +-
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/arm/spinlock-test.c b/arm/spinlock-test.c
index 6009ba087e4b..7676a1523db5 100644
--- a/arm/spinlock-test.c
+++ b/arm/spinlock-test.c
@@ -58,7 +58,7 @@ static void test_spinlock(void)
 
 		lock_ops.unlock(&global_lock);
 	}
-	report("CPU%d: Done - Errors: %d\n", errors == 0, cpu, errors);
+	report("CPU%d: Done - Errors: %d", errors == 0, cpu, errors);
 
 	cpumask_set_cpu(cpu, &smp_test_complete);
 	if (cpu != 0)
diff --git a/x86/asyncpf.c b/x86/asyncpf.c
index a6051ab03eed..e29e07c556f3 100644
--- a/x86/asyncpf.c
+++ b/x86/asyncpf.c
@@ -52,13 +52,13 @@ static void pf_isr(struct ex_regs *r)
 
 	switch (reason) {
 		case 0:
-			report("unexpected #PF at %p\n", false, read_cr2());
+			report("unexpected #PF at %p", false, read_cr2());
 			break;
 		case KVM_PV_REASON_PAGE_NOT_PRESENT:
 			phys = virt_to_phys_cr3(virt);
 			install_pte(phys_to_virt(read_cr3()), 1, virt, phys, 0);
 			write_cr3(read_cr3());
-			report("Got not present #PF token %x virt addr %p phys addr %p\n",
+			report("Got not present #PF token %x virt addr %p phys addr %p",
 					true, read_cr2(), virt, phys);
 			while(phys) {
 				safe_halt(); /* enables irq */
@@ -66,7 +66,7 @@ static void pf_isr(struct ex_regs *r)
 			}
 			break;
 		case KVM_PV_REASON_PAGE_READY:
-			report("Got present #PF token %x\n", true, read_cr2());
+			report("Got present #PF token %x", true, read_cr2());
 			if ((uint32_t)read_cr2() == ~0)
 				break;
 			install_pte(phys_to_virt(read_cr3()), 1, virt, phys | PT_PRESENT_MASK | PT_WRITABLE_MASK, 0);
@@ -74,7 +74,7 @@ static void pf_isr(struct ex_regs *r)
 			phys = 0;
 			break;
 		default:
-			report("unexpected async pf reason %d\n", false, reason);
+			report("unexpected async pf reason %d", false, reason);
 			break;
 	}
 }
diff --git a/x86/svm.c b/x86/svm.c
index cef0f568d611..25ac0ce4a645 100644
--- a/x86/svm.c
+++ b/x86/svm.c
@@ -603,7 +603,7 @@ static void test_ioio(struct test *test)
     return;
 
 fail:
-    report("stage %d\n", false, get_test_stage(test));
+    report("stage %d", false, get_test_stage(test));
     test->scratch = -1;
 }
 
@@ -678,7 +678,7 @@ static void sel_cr0_bug_test(struct test *test)
      * are not in guest-mode anymore so we can't trigger an intercept.
      * Trigger a tripple-fault for now.
      */
-    report("sel_cr0 test. Can not recover from this - exiting\n", false);
+    report("sel_cr0 test. Can not recover from this - exiting", false);
     exit(report_summary());
 }
 
diff --git a/x86/vmx_tests.c b/x86/vmx_tests.c
index 5fd95706c418..911bb618d55c 100644
--- a/x86/vmx_tests.c
+++ b/x86/vmx_tests.c
@@ -1098,7 +1098,7 @@ static int ept_exit_handler()
 						(unsigned long)data_page2,
 						EPT_RA | EPT_WA | EPT_EA);
 			} else
-				report("EPT basic framework - write\n", 0);
+				report("EPT basic framework - write", 0);
 			break;
 		case 1:
 			install_ept(pml4, (unsigned long)data_page1,
-- 
2.9.3

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux