mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 01:41:39 +00:00
[PATCH] uml: add a debugging message
Add a debugging message in the case that mapping a stub fails. Signed-off-by: Jeff Dike <jdike@linux.intel.com> Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
7c7a89499a
commit
b4cf95c69a
1 changed files with 4 additions and 1 deletions
|
@ -419,9 +419,12 @@ void map_stub_pages(int fd, unsigned long code,
|
||||||
.offset = code_offset
|
.offset = code_offset
|
||||||
} } });
|
} } });
|
||||||
n = os_write_file(fd, &mmop, sizeof(mmop));
|
n = os_write_file(fd, &mmop, sizeof(mmop));
|
||||||
if(n != sizeof(mmop))
|
if(n != sizeof(mmop)){
|
||||||
|
printk("mmap args - addr = 0x%lx, fd = %d, offset = %llx\n",
|
||||||
|
code, code_fd, (unsigned long long) code_offset);
|
||||||
panic("map_stub_pages : /proc/mm map for code failed, "
|
panic("map_stub_pages : /proc/mm map for code failed, "
|
||||||
"err = %d\n", -n);
|
"err = %d\n", -n);
|
||||||
|
}
|
||||||
|
|
||||||
if ( stack ) {
|
if ( stack ) {
|
||||||
__u64 map_offset;
|
__u64 map_offset;
|
||||||
|
|
Loading…
Reference in a new issue