Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Aug 2014 00:47:24 GMT
From:      op@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r272316 - soc2014/op/freebsd-base/sys/kern
Message-ID:  <201408130047.s7D0lOxT005419@socsvn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: op
Date: Wed Aug 13 00:47:24 2014
New Revision: 272316
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=272316

Log:
  KSP: new lines at end of DBG messages
  
  Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
  
  git: https://github.com/opntr/opBSD/tree/op/gsoc2014/smap+kpatch

Modified:
  soc2014/op/freebsd-base/sys/kern/kern_selfpatch.c

Modified: soc2014/op/freebsd-base/sys/kern/kern_selfpatch.c
==============================================================================
--- soc2014/op/freebsd-base/sys/kern/kern_selfpatch.c	Wed Aug 13 00:47:11 2014	(r272315)
+++ soc2014/op/freebsd-base/sys/kern/kern_selfpatch.c	Wed Aug 13 00:47:24 2014	(r272316)
@@ -215,7 +215,7 @@
 	eva = (vm_offset_t)(p->patchable);
 	sva = (vm_offset_t)(p->patchable + p->patchable_size);
 
-	DBG("kernel: %p - %p RX -> RWX"
+	DBG("kernel: %p - %p RX -> RWX\n"
 	    (void *)sva, (void *)eva);
 	pmap_protect(kernel_pmap, sva, eva,
 	    VM_PROT_READ | VM_PROT_WRITE | VM_PROT_EXECUTE);
@@ -236,7 +236,7 @@
 
 	eva = (vm_offset_t)(p->patchable);
 	sva = (vm_offset_t)(p->patchable + p->patchable_size);
-	DBG("kernel: %p - %p RWX -> RX",
+	DBG("kernel: %p - %p RWX -> RX\n",
 	    (void *)sva, (void *)eva);
 
 	pmap_protect(kernel_pmap, sva, eva,
@@ -247,7 +247,7 @@
 	wbinvd();
 	invltlb();
 
-	DBG("caches flushed.");
+	DBG("caches flushed.\n");
 }
 
 static void
@@ -262,7 +262,7 @@
 
 	eva = (vm_offset_t)(p->patchable);
 	sva = (vm_offset_t)(p->patchable + p->patchable_size);
-	DBG("module: %p - %p RX -> RWX",
+	DBG("module: %p - %p RX -> RWX\n",
 	    (void *)sva, (void *)eva);
 
 	pmap_protect(module_pmap, sva, eva,
@@ -284,7 +284,7 @@
 
 	eva = (vm_offset_t)(p->patchable);
 	sva = (vm_offset_t)(p->patchable + p->patchable_size);
-	DBG("module: %p - %p RWX -> RX",
+	DBG("module: %p - %p RWX -> RX\n",
 	    (void *)sva, (void *)eva);
 
 	pmap_protect(module_pmap, sva, eva,
@@ -294,6 +294,8 @@
 	/* Flushes caches and TLBs. */
 	wbinvd();
 	invltlb();
+
+	DBG("caches flushed.\n");
 }
 
 #ifdef KSP_DEBUG



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