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@gmail.com>
This commit is contained in:
Augustin Cavalier 2018-09-18 15:55:39 -04:00 committed by waddlesplash
parent 055a35e632
commit 753e006611

View File

@ -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) {