No 'boot error' message if booting secondary vcpu succeeds.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Mon, 22 Aug 2005 10:18:14 +0000 (10:18 +0000)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Mon, 22 Aug 2005 10:18:14 +0000 (10:18 +0000)
linux-2.6-xen-sparse/arch/xen/i386/kernel/smpboot.c

index b879cf5a8d92a56e561b85ae7cbe8cbb4db2f10d..45787ddf5b646ec891e05dade040a245b810bf76 100644 (file)
@@ -923,7 +923,8 @@ static int __init do_boot_cpu(int apicid)
        ctxt.ctrlreg[3] = virt_to_mfn(swapper_pg_dir) << PAGE_SHIFT;
 
        boot_error = HYPERVISOR_boot_vcpu(cpu, &ctxt);
-       printk("boot error: %ld\n", boot_error);
+       if (boot_error)
+               printk("boot error: %ld\n", boot_error);
 
        if (!boot_error) {
                /*