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:
parent
055a35e632
commit
753e006611
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user