Skip to contentSkip to conversation

Remove debug printks.

PATCH In review Arun Sharma 2 participants 2 messages Jul 10, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 4/5 Remove debug printks.

Remove debug printks.

Sometimes they generate too much output on serial console.

xen/arch/x86/vmx.c +1 -4
diff -r 2ae37d882cf5 -r 14097f22fe2e xen/arch/x86/vmx.c
@@ -1455,12 +1484,9 @@
 
 	    if (idtv_info_field & 0x800) { /* valid error code */
 		unsigned long error_code;
-		printk("VMX exit %x: %x/%lx\n",
-			exit_reason, idtv_info_field, error_code);
 		__vmread(VM_EXIT_INTR_ERROR_CODE, &error_code);
 		__vmwrite(VM_ENTRY_EXCEPTION_ERROR_CODE, error_code);
-	    } else
-	    	printk("VMX exit %x: %x\n", exit_reason, idtv_info_field);
+	    } 
 	}
         VMX_DBG_LOG(DBG_LEVEL_1, "idtv_info_field=%x", idtv_info_field);
     }
#1 lore raw
Quoted 3 lines · Arun Sharma

Remove debug printks.

Sometimes they generate too much output on serial console.

Not to mention that error_code was used before being initialized:

Quoted 3 lines
xen/arch/x86/vmx.c +0 -2
 		unsigned long error_code;
-		printk("VMX exit %x: %x/%lx\n",
-			exit_reason, idtv_info_field, error_code);
Signature · 1 line
David Hopwood <[email protected]>