Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jan 2008 23:18:06 GMT
From:      Kip Macy <kmacy@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 134043 for review
Message-ID:  <200801242318.m0ONI6G9027292@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=134043

Change 134043 by kmacy@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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801242318.m0ONI6G9027292>