From owner-svn-soc-all@FreeBSD.ORG Wed Aug 13 00:47:25 2014 Return-Path: Delivered-To: svn-soc-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4A8A7A89 for ; Wed, 13 Aug 2014 00:47:25 +0000 (UTC) Received: from socsvn.freebsd.org (socsvn.freebsd.org [IPv6:2001:1900:2254:206a::50:2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1DC592DEA for ; Wed, 13 Aug 2014 00:47:25 +0000 (UTC) Received: from socsvn.freebsd.org ([127.0.1.124]) by socsvn.freebsd.org (8.14.9/8.14.9) with ESMTP id s7D0lOS8005422 for ; Wed, 13 Aug 2014 00:47:24 GMT (envelope-from op@FreeBSD.org) Received: (from www@localhost) by socsvn.freebsd.org (8.14.9/8.14.9/Submit) id s7D0lOxT005419 for svn-soc-all@FreeBSD.org; Wed, 13 Aug 2014 00:47:24 GMT (envelope-from op@FreeBSD.org) Date: Wed, 13 Aug 2014 00:47:24 GMT Message-Id: <201408130047.s7D0lOxT005419@socsvn.freebsd.org> X-Authentication-Warning: socsvn.freebsd.org: www set sender to op@FreeBSD.org using -f From: op@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r272316 - soc2014/op/freebsd-base/sys/kern MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2014 00:47:25 -0000 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 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