diff options
author | Justus Winter <justus@gnupg.org> | 2016-10-21 16:12:34 +0200 |
---|---|---|
committer | Justus Winter <justus@gnupg.org> | 2016-10-21 16:12:34 +0200 |
commit | 834a883acdbdfa3fc93a9b635d20f4d636a1be41 (patch) | |
tree | f778f8ad595249f022a52f5d7e13029628fec1a9 | |
parent | 7a87480524cec3e3386baaa0cf8e12b39e91428e (diff) | |
download | gnumach-834a883acdbdfa3fc93a9b635d20f4d636a1be41.tar.gz gnumach-834a883acdbdfa3fc93a9b635d20f4d636a1be41.tar.bz2 gnumach-834a883acdbdfa3fc93a9b635d20f4d636a1be41.zip |
vm: Print map names in case of failures.
* vm/vm_kern.c (kmem_alloc): Print map names in case of failures.
(kmem_alloc_wired): Likewise.
(kmem_alloc_aligned): Likewise.
(kmem_alloc_pageable): Likewise.
-rw-r--r-- | vm/vm_kern.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/vm/vm_kern.c b/vm/vm_kern.c index 81bb1531..a84553d6 100644 --- a/vm/vm_kern.c +++ b/vm/vm_kern.c @@ -401,7 +401,8 @@ retry: goto retry; } - printf_once("no more room for kmem_alloc in %p\n", map); + printf_once("no more room for kmem_alloc in %p (%s)\n", + map, map->name); vm_object_deallocate(object); return kr; } @@ -475,7 +476,8 @@ retry: goto retry; } - printf_once("no more room for kmem_alloc_wired in %p\n", map); + printf_once("no more room for kmem_alloc_wired in %p (%s)\n", + map, map->name); return kr; } @@ -561,7 +563,8 @@ retry: goto retry; } - printf_once("no more room for kmem_alloc_aligned in %p\n", map); + printf_once("no more room for kmem_alloc_aligned in %p (%s)\n", + map, map->name); return kr; } @@ -623,7 +626,8 @@ kmem_alloc_pageable( VM_OBJECT_NULL, (vm_offset_t) 0, FALSE, VM_PROT_DEFAULT, VM_PROT_ALL, VM_INHERIT_DEFAULT); if (kr != KERN_SUCCESS) { - printf_once("no more room for kmem_alloc_pageable in %p\n", map); + printf_once("no more room for kmem_alloc_pageable in %p (%s)\n", + map, map->name); return kr; } |