[haiku-commits] haiku: hrev52355 - src/system/kernel/vm

  • From: waddlesplash <waddlesplash@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 18 Sep 2018 16:03:05 -0400 (EDT)

hrev52355 adds 1 changeset to branch 'master'
old head: 055a35e632c4f65a757047dc9ba3ad9a59f7187c
new head: 753e00661139fc4881b36099a9b0097d2d761edf
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=753e00661139+%5E055a35e632c4

----------------------------------------------------------------------------

753e00661139: kernel: Include the area name and ID in the "attempting to clone" 
panic message.
  
  Change-Id: Iecc842047929531f8feb7304fbcd1a8f2b28ab2f
  Reviewed-on: https://review.haiku-os.org/584
  Reviewed-by: waddlesplash <waddlesplash@xxxxxxxxx>

                              [ Augustin Cavalier <waddlesplash@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev52355
Commit:      753e00661139fc4881b36099a9b0097d2d761edf
URL:         https://git.haiku-os.org/haiku/commit/?id=753e00661139
Author:      Augustin Cavalier <waddlesplash@xxxxxxxxx>
Date:        Tue Sep 18 19:55:39 2018 UTC
Committer:   waddlesplash <waddlesplash@xxxxxxxxx>
Commit-Date: Tue Sep 18 20:03:00 2018 UTC

----------------------------------------------------------------------------

1 file changed, 3 insertions(+), 2 deletions(-)
src/system/kernel/vm/vm.cpp | 5 +++--

----------------------------------------------------------------------------

diff --git a/src/system/kernel/vm/vm.cpp b/src/system/kernel/vm/vm.cpp
index 8152e09fad..6176bd75a6 100644
--- a/src/system/kernel/vm/vm.cpp
+++ b/src/system/kernel/vm/vm.cpp
@@ -2107,8 +2107,9 @@ vm_clone_area(team_id team, const char* name, void** 
address,
                && !(sourceArea->protection & B_USER_CLONEABLE_AREA)) {
                // kernel areas must not be cloned in userland, unless 
explicitly
                // declared user-cloneable upon construction
-#if KDEBUG_LEVEL_2
-               panic("attempting to clone non-user-cloneable kernel area!");
+#if KDEBUG
+               panic("attempting to clone kernel area \"%s\" (%" B_PRId32 ")!",
+                       sourceArea->name, sourceID);
 #endif
                status = B_NOT_ALLOWED;
        } else if (sourceArea->cache_type == CACHE_TYPE_NULL) {


Other related posts:

  • » [haiku-commits] haiku: hrev52355 - src/system/kernel/vm - waddlesplash