PERFORCE change 134043 for review

Kip Macy kmacy at FreeBSD.org
Thu Jan 24 15:18:06 PST 2008


http://perforce.freebsd.org/chv.cgi?CH=134043

Change 134043 by kmacy at pandemonium:kmacy:xen31 on 2008/01/24 23:17:05

	turn printf into log

Affected files ...

.. //depot/projects/xen31/sys/i386/i386/trap.c#9 edit

Differences ...

==== //depot/projects/xen31/sys/i386/i386/trap.c#9 (text+ko) ====

@@ -69,6 +69,7 @@
 #include <sys/syscall.h>
 #include <sys/sysctl.h>
 #include <sys/sysent.h>
+#include <sys/syslog.h>
 #include <sys/uio.h>
 #include <sys/vmmeter.h>
 #ifdef KTRACE
@@ -834,7 +835,7 @@
 	}
 #ifdef XEN
 	if (rv == KERN_PROTECTION_FAILURE)
-		printf("SIGBUS: p=%s va=0x%x ftype=0x%x eip=0x%x\n", p->p_comm, va, ftype, frame->tf_eip);
+		log(LOG_ERR, "SIGBUS: p=%s va=0x%x ftype=0x%x eip=0x%x\n", p->p_comm, va, ftype, frame->tf_eip);
 #endif
 	    
 	return((rv == KERN_PROTECTION_FAILURE) ? SIGBUS : SIGSEGV);


More information about the p4-projects mailing list